composer require ewll/crud-bundle
Add to packages configuration:
config/bundles.php
...
Ewll\CrudBundle\EwllCrudBundle::class => ['all' => true]`
...
config/routes.yaml
ewll_crud:
resource: '@EwllCrudBundle/Resources/config/routing.yaml'
prefix: '/crud'
This function allows to inject mechanism of getting user inside unit.
The main name for URL. Must be unique of all other utits.
The main entity class.
Class name of class implemented Ewll\CrudBundle\Source\SourceInterface allows access to entity storage.
Class name of ewll/user-bundle AccessRule class implemented Ewll\UserBundle\AccessRule\AccessRuleInterface.
Must returns array of Access Conditions.
Must returns array of Custom Actions class names.
Allows to create entities by request: POST /crud/{unitName}
Set Form Config for entity creation.
Returns array of fields with new values. This method calls before storing.
Some actions inside transaction within INSERT.
Some data you need to see in Response after success creation.
@TODO
@TODO
Ewll\CrudBundle\Form\FormConfig
This is some wrapper for Symfony Form Building
Use read transformers to transform data into views.
Ewll\CrudBundle\ReadViewCompiler\Transformer.App\Crud\Transformer.Ewll\CrudBundle\ReadViewCompiler\Transformer\ViewTransformerInitializerInterface. Use abstract class Ewll\CrudBundle\ReadViewCompiler\Transformer\ViewTransformerInitializerInterface. This class is needed to define transformer parameters. You will put it into Unit methods getReadListFields() and getReadOneFields().Ewll\CrudBundle\ReadViewCompiler\Transformer\ViewTransformerInterface. Make it as service with tag crud_view_transformer.How can I help you explore Laravel packages today?