Skip to content

Instantly share code, notes, and snippets.

@pjedrzejewski
Created February 25, 2011 17:21
Show Gist options
  • Save pjedrzejewski/844125 to your computer and use it in GitHub Desktop.
Save pjedrzejewski/844125 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://www.symfony-project.org/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="sylius.assortment.form.category.class">Sylius\AssortmentBundle\Form\CategoryForm</parameter>
<parameter key="sylius.assortment.form.category.name">form.category</parameter>
</parameters>
<services>
<service id="sylius.assortment.form.category" factory-method="create" factory-class="%sylius.assortment.form.category.class%" class="%sylius.assortment.form.category.class%">
<argument type="service" id="form.context" />
<argument>%sylius.assortment.form.category.name%</argument>
</service>
</services>
</container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment