Skip to content

Commit

Permalink
Merge pull request Sylius#386 from bendavies/fix-resource-configuration
Browse files Browse the repository at this point in the history
fix Resource Bundle configuration tree
  • Loading branch information
Paweł Jędrzejewski committed Dec 18, 2015
2 parents 651f3e6 + 22469b9 commit f4b3351
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions bundles/SyliusResourceBundle/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,20 @@ In your ``app/config.yml`` (or in an imported configuration file), you need to d
driver: doctrine/orm
object_manager: default
templates: App:User
resources:
entity_name:
classes:
model: MyApp\Entity\EntityName
interface: MyApp\Entity\EntityNameInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository
classes:
model: MyApp\Entity\EntityName
interface: MyApp\Entity\EntityNameInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository
my_app.document_name:
driver: doctrine/mongodb-odm
object_manager: default
templates: App:User
resources:
document:
classes:
model: MyApp\Document\DocumentName
interface: MyApp\Document\DocumentNameInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: Sylius\Bundle\ResourceBundle\Doctrine\ODM\DocumentRepository
classes:
model: MyApp\Document\DocumentName
interface: MyApp\Document\DocumentNameInterface
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
repository: Sylius\Bundle\ResourceBundle\Doctrine\ODM\DocumentRepository
At this step, we can see what happen in the container:

Expand Down

0 comments on commit f4b3351

Please # to comment.