Giter Site home page Giter Site logo

Comments (4)

mmenozzi avatar mmenozzi commented on May 13, 2024

This is because the step 2 of the installation is done automatically by Symfony Flex but not the step 3.
So just after the composer require webgriffe/sylius-akeneo-plugin you have the plugin enabled but without its configuration which define the webgriffe_sylius_akeneo.queue_item resource which in turns defines the webgriffe_sylius_akeneo.manager.queue_item service.

Anyway as you say it would be nice to have the installation succeed without error.

from syliusakeneoplugin.

mmenozzi avatar mmenozzi commented on May 13, 2024

I don't know why but it appears that before importing the plugin configuration, the service webgriffe_sylius_akeneo.manager.queue_item does not exists but the service webgriffe_sylius_akeneo_plugin.manager.queue_item does. And both are aliases of doctrine.orm.default_entity_manager.

So a possible fix to this issue is to replace this in src/Resources/config/services.xml:

        <service id="webgriffe_sylius_akeneo_plugin.repository.cleanable_queue_item" class="Webgriffe\SyliusAkeneoPlugin\Doctrine\ORM\QueueItemRepository">
            <argument type="service" id="webgriffe_sylius_akeneo.manager.queue_item" />
            <argument type="service">
                <service class="Doctrine\ORM\Mapping\ClassMetadata" public="false" >
                    <factory service="webgriffe_sylius_akeneo_plugin.manager.queue_item" method="getClassMetadata" />
                    <argument type="string">Webgriffe\SyliusAkeneoPlugin\Entity\QueueItem</argument>
                </service>
            </argument>
        </service>

with this:

        <service id="webgriffe_sylius_akeneo_plugin.repository.cleanable_queue_item" class="Webgriffe\SyliusAkeneoPlugin\Doctrine\ORM\QueueItemRepository">
            <argument type="service" id="webgriffe_sylius_akeneo_plugin.manager.queue_item" />
            <argument type="service">
                <service class="Doctrine\ORM\Mapping\ClassMetadata" public="false" >
                    <factory service="webgriffe_sylius_akeneo_plugin.manager.queue_item" method="getClassMetadata" />
                    <argument type="string">Webgriffe\SyliusAkeneoPlugin\Entity\QueueItem</argument>
                </service>
            </argument>
        </service>

The question is: who is defining the webgriffe_sylius_akeneo_plugin.manager.queue_item alias even before importing the configuration of the queue_item resource into the Sylius Resource Bundle?

from syliusakeneoplugin.

mmenozzi avatar mmenozzi commented on May 13, 2024

The question is: who is defining the webgriffe_sylius_akeneo_plugin.manager.queue_item alias even before importing the configuration of the queue_item resource into the Sylius Resource Bundle?

Answer: https://github.com/webgriffe/SyliusAkeneoPlugin/blob/master/src/DependencyInjection/WebgriffeSyliusAkeneoExtension.php#L106

from syliusakeneoplugin.

mmenozzi avatar mmenozzi commented on May 13, 2024

This has been solved with #43, closing.

from syliusakeneoplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.