Developing with the Sylius ResourceBundle

Developing with the Sylius ResourceBundle

Symfony live Paris 2015

During its development, the Sylius team realized that they were duplicating a lot of code to manage their CRUDs. Not wanting to reinvent Symfony or use an admin generator, they decided to create a simple and flexible bundle: SyliusResourceBundle. I will present how to manage your CRUDs with this bundle by writing the minimum amount of code and, most importantly, without duplicating it! It was designed to support multiple types of drivers (DoctrineORM, PHPCR). Moreover, it allows for the rapid construction of an API thanks to the FOSTRestBundle. I will highlight all the components used by this bundle, such as Doctrine. It facilitates configuration through ResolveDoctrineTargetEntitiesPass and the creation of MappingDriver. It also uses the EventDispatcher: events are raised when an action is executed on a resource. It also brings new FormType or FormExtension like the CollectionExtension, which allows managing your form collections (including JS).

Watch the video

See the slides


Bundle documentation

Github repository

Sylius website

Let’s move your projects forward, let’s discuss it together!

Let's move your projects forward, let's discuss it together!