From 3eec24a0922916166e51ac30ea4e0ff76dd8c036 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Tue, 21 May 2024 16:44:55 +0200 Subject: [PATCH 1/2] Dropped class_alias BC layer from production code --- src/bundle/Command/CronRunCommand.php | 2 -- src/bundle/DependencyInjection/Compiler/CronJobCompilerPass.php | 2 -- src/bundle/DependencyInjection/IbexaCronExtension.php | 2 -- src/bundle/IbexaCronBundle.php | 2 -- src/bundle/Registry/CronJobsRegistry.php | 2 -- 5 files changed, 10 deletions(-) diff --git a/src/bundle/Command/CronRunCommand.php b/src/bundle/Command/CronRunCommand.php index f502201..8b624bd 100644 --- a/src/bundle/Command/CronRunCommand.php +++ b/src/bundle/Command/CronRunCommand.php @@ -109,5 +109,3 @@ public function getDeprecatedAliases(): array return ['ezplatform:cron:run']; } } - -class_alias(CronRunCommand::class, 'EzSystems\EzPlatformCronBundle\Command\CronRunCommand'); diff --git a/src/bundle/DependencyInjection/Compiler/CronJobCompilerPass.php b/src/bundle/DependencyInjection/Compiler/CronJobCompilerPass.php index d0af13e..fe76c52 100644 --- a/src/bundle/DependencyInjection/Compiler/CronJobCompilerPass.php +++ b/src/bundle/DependencyInjection/Compiler/CronJobCompilerPass.php @@ -50,5 +50,3 @@ public function process(ContainerBuilder $container) } } } - -class_alias(CronJobCompilerPass::class, 'EzSystems\EzPlatformCronBundle\DependencyInjection\Compiler\CronJobCompilerPass'); diff --git a/src/bundle/DependencyInjection/IbexaCronExtension.php b/src/bundle/DependencyInjection/IbexaCronExtension.php index f6f0e5f..45620f3 100644 --- a/src/bundle/DependencyInjection/IbexaCronExtension.php +++ b/src/bundle/DependencyInjection/IbexaCronExtension.php @@ -39,5 +39,3 @@ public function prepend(ContainerBuilder $container) $container->prependExtensionConfig('monolog', $config); } } - -class_alias(IbexaCronExtension::class, 'EzSystems\EzPlatformCronBundle\DependencyInjection\EzPlatformCronExtension'); diff --git a/src/bundle/IbexaCronBundle.php b/src/bundle/IbexaCronBundle.php index b993ae7..e46a96e 100644 --- a/src/bundle/IbexaCronBundle.php +++ b/src/bundle/IbexaCronBundle.php @@ -20,5 +20,3 @@ public function build(ContainerBuilder $container) $container->addCompilerPass(new CronJobCompilerPass()); } } - -class_alias(IbexaCronBundle::class, 'EzSystems\EzPlatformCronBundle\EzPlatformCronBundle'); diff --git a/src/bundle/Registry/CronJobsRegistry.php b/src/bundle/Registry/CronJobsRegistry.php index 6c8db44..24e98fc 100644 --- a/src/bundle/Registry/CronJobsRegistry.php +++ b/src/bundle/Registry/CronJobsRegistry.php @@ -82,5 +82,3 @@ public function getCategoryCronJobs(string $category): array return $this->cronJobs[$category]; } } - -class_alias(CronJobsRegistry::class, 'EzSystems\EzPlatformCronBundle\Registry\CronJobsRegistry'); From c346674e064e648cd0fe61d4ab3fb566dd256e56 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 22 May 2024 01:22:41 +0200 Subject: [PATCH 2/2] [Composer] Dropped legacy namespaces from autoload section --- composer.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b4d248c..f6e7bf5 100644 --- a/composer.json +++ b/composer.json @@ -11,15 +11,13 @@ "psr-4": { "Ibexa\\Cron\\": "src/lib/", "Ibexa\\Bundle\\Cron\\": "src/bundle/", - "Ibexa\\Contracts\\Cron\\": "src/contracts/", - "EzSystems\\EzPlatformCronBundle\\": "src/bundle" + "Ibexa\\Contracts\\Cron\\": "src/contracts/" } }, "autoload-dev": { "psr-4": { "Ibexa\\Tests\\Bundle\\Cron\\": "tests/bundle/", - "Ibexa\\Tests\\Cron\\": "tests/lib/", - "EzSystems\\EzPlatformCronBundle\\Tests\\": "tests/CronBundle" + "Ibexa\\Tests\\Cron\\": "tests/lib/" } }, "require": {