Download the PHP package friendsofsulu/maker-bundle without Composer
On this page you can find all versions of the php package friendsofsulu/maker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download friendsofsulu/maker-bundle
More information about friendsofsulu/maker-bundle
Files in friendsofsulu/maker-bundle
Package maker-bundle
Short Description Package to generate configuration and boilerplate code in Sulu
License MIT
Informations about the package maker-bundle
Sulu Maker Bundle
This package adds code generators for Sulu configurations and other features of Sulu to get you started quicker. This bundle is based on the Symfony maker bundle
How to install
Installing it with composer is very easy:
Example Usage
Create an entity (either manually or with make:entity).
Then you can create a list configuration for this entity bin/console make:sulu:list App\\Entity\\Changelog. This will ask for every property if it should be visible and if it is should be searchable. Looking like this:
Most of the values have defaults so just hitting enter on most of them works.
Feature List
Here is a list of features this maker provides.
:white_check_mark: Generating a new page type sulu:make:page-type
You can generate an XML file in the Sulu pages directory and an example template in the Twig directory.
:white_check_mark: Generating the List XML Configruation make:sulu:list
The basics for this are working. This can't generate a configuration for entities with join columns.
:exclamation: Generating form XML configuration make:sulu:form
TODO
:white_check_mark: Generating an admin class for an entity sulu:make:admin
Basic generation is working. You can also disable parts of the view generation (generating a view without the edit form).
:white_check_mark: Generating a controller sulu:make:controller
You can generate a controller with get, delete and update actions or any combination of those. And it even has some helpful tips on avoiding pitfalls with
_in the resource key.
:exclamation: Generate all of the above sulu:make:resource
TODO
:white_check_mark: Generate a Trash handler sulu:make:trash_handler
Generates a Trash handler with the option to also implement restoring functionality for the resource.
:white_check_mark: Generate a Sulu fixture sulu:make:fixture
Generates an example fixture to create a Sulu document