There are plenty of things you need to handle for every single Resource in your web application.
Several "Admin Generators" are available for Symfony, but we needed something really simple, that will allow us to have reusable controllers but preserve the performance and standard Symfony workflow. We did not want to generate any code or write "Admin" class definitions in PHP. The big goal was to have exactly the same workflow as with writing controllers manually but without actually creating them!
Another idea was not to limit ourselves to a single persistence backend.
Resource
component provides us with generic purpose persistence services and you can use this bundle with multiple persistence backends.
So far we support:
- Doctrine ORM
- Doctrine MongoDB ODM
- Doctrine PHPCR ODM
- Create a new resource
- Configure your resource
- Configure your operations
- Redirect
- Resource Factories
- Providers
- Processors
- Responders
- Configuring Your Resources
- Services
- Routing
- Forms
- Getting a Single Resource
- Getting a Collection of Resources
- Creating Resources
- Updating Resources
- Deleting Resources
- Configuring a state machine
- Configuration Reference
- Resource Layer in the Sylius platform - concept documentation