refactor(application): remove obsolete Application/Shared namespace
This commit is contained in:
parent
e7f5f71005
commit
a771d8a5d1
4 changed files with 3 additions and 16 deletions
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Application\Shared\Exceptions;
|
||||
|
||||
final class NotFoundException extends \RuntimeException
|
||||
{
|
||||
public static function forEntity(string $entity, string $id): self
|
||||
{
|
||||
return new self("{$entity} '{$id}' not found.");
|
||||
}
|
||||
}
|
||||
|
|
@ -4,10 +4,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace Tests\Integration\Presentation\Api;
|
||||
|
||||
use Application\Shared\Exceptions\NotFoundException;
|
||||
use Illuminate\Http\Request;
|
||||
use Presentation\Api\Exceptions\ApiExceptionDispatcher;
|
||||
use Presentation\Api\V1\Exceptions\ApiExceptionRenderer as V1ApiExceptionRenderer;
|
||||
use Shared\DDD\Exception\NotFoundException;
|
||||
|
||||
covers(ApiExceptionDispatcher::class);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ declare(strict_types=1);
|
|||
|
||||
namespace Tests\Integration\Presentation\Api\V1;
|
||||
|
||||
use Application\Shared\Exceptions\NotFoundException;
|
||||
use Illuminate\Http\Exceptions\ThrottleRequestsException;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Presentation\Api\V1\Exceptions\ApiExceptionRenderer;
|
||||
use Shared\DDD\Exception\NotFoundException;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
|
||||
covers(ApiExceptionRenderer::class);
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ declare(strict_types=1);
|
|||
|
||||
namespace Tests\Integration\Presentation\Web;
|
||||
|
||||
use Application\Shared\Exceptions\NotFoundException;
|
||||
use Illuminate\Http\Request;
|
||||
use Presentation\Web\Exceptions\WebExceptionRenderer;
|
||||
use Shared\DDD\Exception\NotFoundException;
|
||||
|
||||
covers(WebExceptionRenderer::class);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue