refactor(application): remove obsolete Application/Shared namespace

This commit is contained in:
Jérémy Munsch 2026-08-18 12:09:38 +02:00
parent e7f5f71005
commit a771d8a5d1
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4
4 changed files with 3 additions and 16 deletions

View file

@ -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.");
}
}

View file

@ -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);

View file

@ -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);

View file

@ -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);