Details
-
Bug
-
Resolution: Fixed
-
High
-
2.2.0
-
None
Description
Background
We have started using autowiring in commands defined in EzPublishCoreBundle, however the necessary aliases are defined in the AdminUI only which is a flaw in the architecture.
These aliases should be defined by ezpublish-kernel package.
Steps to reproduce
- Install clean Open Source edition of eZ Platform
- Disable (comment-out):
- in app/AppKernel.php the EzPlatformAdminUiBundle.
- in app/config/config.yml assetic.bundles config node.
- in app/config/routing.yml entire ezplatform.admin_ui route (with nested nodes).
- Clear the Symfony cache
- Notice the error
Cannot autowire service "ezplatform.core.command.copy_subtree": argument "$locationService" of method "eZ\Bundle\EzPublishCoreBundle\Command\CopySubtreeCommand::__construct()" references interface "eZ\Publish\API\Repository\LocationService" but no such service exists. You should maybe alias this interface (...)
Attachments
Issue Links
- discovered while testing
-
EZP-29139 RegenerateUrlAliasesCommand should keep historized Url Aliases
- Closed