sbyaute / frontbundle-maker
Ce bundle offre une interface permettant de créer des interfaces CRUD basées sur front-bundle.
Package info
github.com/sbyaute/frontbundle-maker
Type:symfony-bundle
pkg:composer/sbyaute/frontbundle-maker
Requires
- php: >=7.1.3
- cnam/front-bundle: >=5.1.0
- doctrine/annotations: >=1.0
- sensio/framework-extra-bundle: >=4
- symfony/console: >=4.4
- symfony/form: >=4.4
- symfony/maker-bundle: >=1.0
- symfony/security-bundle: >=4.4
- symfony/translation: >=4.4
- symfony/twig-bundle: >=4.4
- symfony/validator: >=4.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This repository contains FrontBundleMaker bundle which helps you create controller skeletons and templates based on FrontBundle bundle.
Minimum requirements
Installation with Composer
Installation using composer :
composer require sbyaute/FrontBundle-Maker
Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:
<?php return [ // ... Sbyaute\FrontBundleMakerBundle\FrontBundleMakerBundle::class => ['all' => true], ];
Usage
This bundle provides several commands under the make: namespace. List them all executing this command:
php bin/console list make:frontbundle make:frontbundle:controller Creates a new controller class make:frontbundle:crud Creates FrontBundle CRUD for Doctrine entity class make:frontbundle:crudmodal Creates FrontBundle CRUD (modal mode) for Doctrine entity class
Configuration
This bundle doesn't require any configuration. But, you can configure the base layout and several parameters :
php bin/console config:dump twig_bootstrap_maker
twig_bootstrap_maker:
base_layout: '@FrontBundle/layout.html.twig'
skeleton_dir: .../src/DependencyInjection/../Resources/skeleton/
Translation
The translation messages are located in messages and entity class domain. So yo can update it by using :
php bin/console translation:update fr --force --output-format=yaml --domain=messages php bin/console translation:update fr --force --output-format=yaml --domain=[entity class]
License and contributors
Published under the MIT, read the LICENSE file for more information.