sbyaute/frontbundle-maker

Ce bundle offre une interface permettant de créer des interfaces CRUD basées sur front-bundle.

Installs: 760

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.5 2022-11-06 13:54 UTC

This package is not auto-updated.

Last update: 2024-04-21 21:13:44 UTC


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.