mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Add configuration reference for ResourceBundle
This commit is contained in:
parent
8db995b276
commit
3c85b6e8d7
3 changed files with 55 additions and 1 deletions
|
|
@ -14,7 +14,6 @@ In your ``app/config/config.yml`` add:
|
|||
sylius_resource:
|
||||
resources:
|
||||
app.book:
|
||||
driver: doctrine/orm
|
||||
classes:
|
||||
model: AppBundle\Entity\Book
|
||||
|
||||
|
|
|
|||
|
|
@ -28,3 +28,4 @@ Another idea was to not limit ourselves to a single persistence backend. ``Resou
|
|||
create_resource
|
||||
update_resource
|
||||
delete_resource
|
||||
reference
|
||||
|
|
|
|||
54
bundles/SyliusResourceBundle/reference.rst
Normal file
54
bundles/SyliusResourceBundle/reference.rst
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
Configuration Reference
|
||||
=======================
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
sylius_resource:
|
||||
resources:
|
||||
app.book
|
||||
driver: doctrine/orm
|
||||
classes:
|
||||
model: # Required!
|
||||
interface: ~
|
||||
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
|
||||
repository: ~
|
||||
factory: Sylius\Component\Resource\Factory\Factory
|
||||
form:
|
||||
default: ~
|
||||
choice: ~
|
||||
foo: ~
|
||||
bar: ~
|
||||
validation_groups:
|
||||
default: [sylius]
|
||||
translation:
|
||||
classes:
|
||||
model: ~
|
||||
interface: ~
|
||||
controller: Sylius\Bundle\ResourceBundle\Controller\ResourceController
|
||||
repository: ~
|
||||
factory: Sylius\Component\Resource\Factory\Factory
|
||||
form:
|
||||
default: ~
|
||||
choice: ~
|
||||
foo: ~
|
||||
bar: ~
|
||||
validation_groups:
|
||||
default: [sylius]
|
||||
|
||||
Routing Generator Configuration Reference
|
||||
-----------------------------------------
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
app_book:
|
||||
resource: |
|
||||
alias: app.book
|
||||
path: library
|
||||
section: admin
|
||||
templates: :Book
|
||||
form: app_book_simple
|
||||
redirect: create
|
||||
except: ['show']
|
||||
only: ['create', 'index']
|
||||
type: sylius.resource
|
||||
|
||||
Loading…
Add table
Reference in a new issue