Skip to content

Commit

Permalink
IBX-8139: Dropped class_alias BC layer statements from all classes (#22)
Browse files Browse the repository at this point in the history
For more details see https://issues.ibexa.co/browse/IBX-8139 and #22

Key changes:

* Dropped class_alias BC layer from production code

* Dropped class_alias BC layer from test code

* [Composer] Dropped legacy namespaces from autoload section
  • Loading branch information
alongosz authored Jun 5, 2024
1 parent 8e92a5d commit c2ebcb0
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
},
"autoload": {
"psr-4": {
"EzSystems\\EzPlatformStandardDesignBundle\\": "src/bundle",
"Ibexa\\StandardDesign\\": "src/lib/",
"Ibexa\\Bundle\\StandardDesign\\": "src/bundle/",
"Ibexa\\Contracts\\StandardDesign\\": "src/contracts/"
}
},
"autoload-dev": {
"psr-4": {
"EzSystems\\Tests\\EzPlatformStandardDesignBundle\\": "tests/bundle",
"Ibexa\\Tests\\StandardDesign\\": "tests/lib/",
"Ibexa\\Tests\\Bundle\\StandardDesign\\": "tests/bundle/"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,3 @@ private function setStandardThemeDirectories(ContainerBuilder $container)
$container->setParameter('ibexa.design.templates.path_map', $templatesPathMap);
}
}

class_alias(KernelOverridePass::class, 'EzSystems\EzPlatformStandardDesignBundle\DependencyInjection\Compiler\EzKernelOverridePass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Compiler/StandardThemePass.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public function process(ContainerBuilder $container)
$container->setParameter('ibexa.design.list', $designList);
}
}

class_alias(StandardThemePass::class, 'EzSystems\EzPlatformStandardDesignBundle\DependencyInjection\Compiler\StandardThemePass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ public function getConfigTreeBuilder()
return $treeBuilder;
}
}

class_alias(Configuration::class, 'EzSystems\EzPlatformStandardDesignBundle\DependencyInjection\Configuration');
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,3 @@ private function prependEzDesignSettings(ContainerBuilder $containerBuilder)
$containerBuilder->addResource(new FileResource($configFile));
}
}

class_alias(IbexaStandardDesignExtension::class, 'EzSystems\EzPlatformStandardDesignBundle\DependencyInjection\EzPlatformStandardDesignExtension');
2 changes: 0 additions & 2 deletions src/bundle/IbexaStandardDesignBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ public function build(ContainerBuilder $container)
$container->addCompilerPass(new StandardThemePass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
}
}

class_alias(IbexaStandardDesignBundle::class, 'EzSystems\EzPlatformStandardDesignBundle\EzPlatformStandardDesignBundle');
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ public function testKernelTemplateNamesHaveEzDesignPrefix()
}
}
}

class_alias(KernelOverridePassTest::class, 'EzSystems\Tests\EzPlatformStandardDesignBundle\DependencyInjection\Compiler\EzKernelOverridePassTest');
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,3 @@ protected function registerCompilerPass(ContainerBuilder $container): void
$container->addCompilerPass(new StandardThemePass());
}
}

class_alias(StandardThemePassTest::class, 'EzSystems\Tests\EzPlatformStandardDesignBundle\DependencyInjection\Compiler\StandardThemePassTest');
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ public function testExtensionPrependsStandardDesignSettings()
);
}
}

class_alias(EzPlatformStandardDesignExtensionTest::class, 'EzSystems\Tests\EzPlatformStandardDesignBundle\DependencyInjection\EzPlatformStandardDesignExtensionTest');

0 comments on commit c2ebcb0

Please sign in to comment.