Download the PHP package l91/sulu-backend-bundle without Composer
On this page you can find all versions of the php package l91/sulu-backend-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download l91/sulu-backend-bundle
More information about l91/sulu-backend-bundle
Files in l91/sulu-backend-bundle
Package sulu-backend-bundle
Short Description Sulu Bundle for easier create your own backend bundles.
License MIT
Homepage https://github.com/alexander-schranz/sulu-backend-bundle
Informations about the package sulu-backend-bundle
SULU Backend Bundle
Inspired by doctrine crud generator.
A Sulu Bundle to make it easier to create a new Backend Bundle.
With this Bundle it should be possible to create a Backend Bundles without the knowledge of husky the sulu javascript framework.
Installation
Add Bundle to AdminKernel
Usage
As example we will create a API for an entity called Vehicle.
1. Create Entity
First create the doctrine entity with a .orm.xml
.
2. Create Repository
Create a Repository for loading entities from the database.
The BackendRepository
have a default implementation for them:
findById
findAll
count
Create the functions in your repository or extend from the BackendRepository.
Register Repository
4. Generate Controller, Manager, Admin Navigation or Tab, JSBundle
You can easily generate them with following command:
Add --extended
to have no requirements to this Bundle. This will generate a complete own Controller, Manager, ...
when use the extended generation you could remove this bundle from your requirements after you generated your bundle.
Command List
You can also just generate a specific part with the following commands:
app/console l91:sulu:backend:generate:controller
app/console l91:sulu:backend:generate:manager
app/console l91:sulu:backend:generate:admin
app/console l91:sulu:backend:generate:js
app/console l91:sulu:backend:generate:navigation-provider