diff --git a/migrations/Version20240606203053.php b/migrations/Version20240606203053.php index 83370ad6..1c7d2bf9 100644 --- a/migrations/Version20240606203053.php +++ b/migrations/Version20240606203053.php @@ -4,16 +4,16 @@ declare(strict_types=1); namespace DoctrineMigrations; +use App\Doctrine\Migration\ContainerAwareMigrationInterface; use App\Migration\AbstractMultiPlatformMigration; use App\Migration\WithPermPresetsTrait; use App\Services\UserSystem\PermissionPresetsHelper; use Doctrine\DBAL\Schema\Schema; -use Symfony\Component\DependencyInjection\ContainerAwareInterface; /** * Auto-generated Migration: Please modify to your needs! */ -final class Version20240606203053 extends AbstractMultiPlatformMigration implements ContainerAwareInterface +final class Version20240606203053 extends AbstractMultiPlatformMigration implements ContainerAwareMigrationInterface { use WithPermPresetsTrait; diff --git a/src/Doctrine/Migration/ContainerAwareMigrationFactory.php b/src/Doctrine/Migration/ContainerAwareMigrationFactory.php index 9ce8e077..81565c0e 100644 --- a/src/Doctrine/Migration/ContainerAwareMigrationFactory.php +++ b/src/Doctrine/Migration/ContainerAwareMigrationFactory.php @@ -28,7 +28,7 @@ use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\Version\MigrationFactory; use Symfony\Component\DependencyInjection\Attribute\AsDecorator; use Symfony\Component\DependencyInjection\Attribute\AutowireLocator; -use Symfony\Component\DependencyInjection\ContainerInterface; +use Psr\Container\ContainerInterface; #[AsDecorator("doctrine.migrations.migrations_factory")] class ContainerAwareMigrationFactory implements MigrationFactory diff --git a/src/Doctrine/Migration/ContainerAwareMigrationInterface.php b/src/Doctrine/Migration/ContainerAwareMigrationInterface.php index 5fd914ba..bd92116a 100644 --- a/src/Doctrine/Migration/ContainerAwareMigrationInterface.php +++ b/src/Doctrine/Migration/ContainerAwareMigrationInterface.php @@ -23,7 +23,7 @@ declare(strict_types=1); namespace App\Doctrine\Migration; -use Symfony\Component\DependencyInjection\ContainerInterface; +use Psr\Container\ContainerInterface; interface ContainerAwareMigrationInterface { diff --git a/src/Migration/WithPermPresetsTrait.php b/src/Migration/WithPermPresetsTrait.php index 44bc4510..203ef68a 100644 --- a/src/Migration/WithPermPresetsTrait.php +++ b/src/Migration/WithPermPresetsTrait.php @@ -26,7 +26,7 @@ namespace App\Migration; use App\Entity\UserSystem\PermissionData; use App\Security\Interfaces\HasPermissionsInterface; use App\Services\UserSystem\PermissionPresetsHelper; -use Symfony\Component\DependencyInjection\ContainerInterface; +use Psr\Container\ContainerInterface; trait WithPermPresetsTrait {