Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29386

Aliases for autowired API services exist in AdminUI only

    XMLWordPrintable

Details

    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

      1. Install clean Open Source edition of eZ Platform
      2. 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).
      3. Clear the Symfony cache
      4. 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

        Activity

          People

            Unassigned Unassigned
            andrew.longosz@ibexa.co Andrew Longosz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: