Configuration and installation of SyliusCartBundle

460 views
Skip to first unread message

panos gergos

unread,
Jul 25, 2012, 11:44:54 AM7/25/12
to syl...@googlegroups.com
Hello there, 
i found you project very interesting. Especially the SyliusCartBundle

i am trying to install it. I did it from composer.
I activated the bundle in the Kernel
and i added to my config.yml:

sylius_cart:
    driver: doctrine/orm

So i have this error:

InvalidConfigurationException: The child node "operator" at path "sylius_cart" must be configured.

i saw in the SandBox that the configuration is based on the implémentation of the bundle in /src/

and there is something like this:

sylius_cart:
    driver: doctrine/orm
    operator: sylius_sandbox_cart.operator
    resolver: sylius_sandbox_cart.resolver
    classes:
        model:
            cart: Sylius\Sandbox\Bundle\CartBundle\Entity\Cart
            item: Sylius\Sandbox\Bundle\CartBundle\Entity\Item
        manager:
            cart: Sylius\Sandbox\Bundle\CartBundle\Entity\CartManager
        form:
            type:
                item: Sylius\Sandbox\Bundle\CartBundle\Form\Type\ItemType


So is it possible to install it without configurating it for the implementation (in src/Sandbox/Sylius/Bundle/CartBundle) ??

Do you think i could use the:sonata/easy-extend to extend the cartbundle exemple:  php app/console sonata:easy-extends:generate SyliusCartBundle

Yas anyone install already used this bundle?

thank you for your help


panos gergos

unread,
Jul 30, 2012, 11:15:28 AM7/30/12
to syl...@googlegroups.com

anyone? i really like this bundle i would like to contribute. but i can't still install it. 
thank you

yo

unread,
Sep 22, 2012, 8:18:40 AM9/22/12
to syl...@googlegroups.com

i have the same problem how to repair this 

panos gergos

unread,
Sep 24, 2012, 3:24:25 AM9/24/12
to syl...@googlegroups.com
I diceded not to use it. i couldn't solve it. This bundle is connected to the other bundles of Sylius. 
I think is better to create your own! much easier!

Luis Cordova

unread,
Aug 5, 2013, 2:08:55 AM8/5/13
to syl...@googlegroups.com

Kevin Prettre

unread,
Dec 27, 2013, 1:04:30 PM12/27/13
to syl...@googlegroups.com
Hi Luis,

that doc is not up to date.

I love the sylius bundles, and the way they are independant, but I've struggled to set them up on my Sf2 project, mainly because the doc is not reflecting anymore what the DepencyInjection/Configuration says.

And the resource bundle is hooking the loadClassMetadata event which conflicts with SonataCoreBundle.

Good work anyway, keep up with it :)
Reply all
Reply to author
Forward
0 new messages