move attributes to separate namespace.

This commit is contained in:
2020-12-30 15:34:12 +07:00
parent bbe1fa33c4
commit 97a2820d16
4 changed files with 5 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Operation; namespace App\Operation;
use App\Service\CachedJokes; use App\Service\Attribute\CachedJokes;
use App\Service\JokeInterface; use App\Service\JokeInterface;
use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\CacheInterface;
use Psr\SimpleCache\InvalidArgumentException; use Psr\SimpleCache\InvalidArgumentException;

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace App\Service; namespace App\Service\Attribute;
use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\CacheInterface;

View File

@@ -4,6 +4,8 @@ declare(strict_types=1);
namespace App\Service; namespace App\Service;
use App\Service\Attribute\CachedJokes;
class JokeCachedService extends JokeService implements JokeInterface class JokeCachedService extends JokeService implements JokeInterface
{ {
#[CachedJokes] #[CachedJokes]

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Service; namespace App\Service;
use App\Service\Attribute\JokeCategoryEnum;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions; use GuzzleHttp\RequestOptions;