Download the PHP package libre-informatique/decorator-bundle without Composer
On this page you can find all versions of the php package libre-informatique/decorator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download libre-informatique/decorator-bundle
More information about libre-informatique/decorator-bundle
Files in libre-informatique/decorator-bundle
Package decorator-bundle
Short Description This is the basis of a GUI for Libre Informatique Symfony2 projects
License GPL-3.0
Homepage https://github.com/libre-informatique/SymfonyBlastCoreBundle
Informations about the package decorator-bundle
SymfonyLibrinfoDecoratorBundle
A basic decorator for various projects
Installation
Prerequiresites
having a working Symfony2 environment
- having created a working Symfony2 app (including your DB and your DB link)
- having composer installed (here in /usr/local/bin/composer, having /usr/local/bin in your path)
Optional:
- having libre-informatique/core-bundle installed, or if not, follow the README instructions of the Core bundle
Downloading
From your project root directory:
The Sonata bundles
Do not forget to configure the SonataAdminBundle. Find examples in the libre-informatique/crm-bundle documentation.
The Libre Informatique bundles
Do not forget to configure the BlastCoreBundle. Find examples in the libre-informatique/core-bundle documentation.
Finish
Consider an assetic bundle :
Publish the assets :
The goal of this bundle
This bundle aims to ease the personnalization, in a reusable and scalable way, of your projects, giving something like a framework, once for all of them.
It works as a man-in-the-middle technology that overloads the default configuration, without stealing the right, for a project, to precise it again. By the way, this bundle reduces the size of the global configuration of a project.
Improving the LibrinfoDecoratorBundle
The basics is to be able to extend in a very smoothy way the SonataAdminBundle, replacing its default parameters in a single YAML file named , and using the Twig philosophy of inheritance and blocks.
decorator.yml
You have noticed the root of this bundle's parameters : . Then if you need to replace generically some templates, you'll need to configure which default configuration you want to replace, to avoid overloading the project direct configuration.
So, you'll have to specify the Sonata key (from root element in your , see the Sonata documentation) and two sub-keys :
- : an array of which values you allow LibrinfoDecoratorBundle to erase
- : the value which will replace what you wrote in the sub-key
The templates
Once you've replaced some of the default configuration templates by new ones you'll be able, if the new ones are located within the LibrinfoDecoratorBundle, to define them in the directory. There you'll use the Twig directives of , , to be more efficient.
e.g.:
All versions of decorator-bundle with dependencies
symfony/symfony Version >=3.2
sonata-project/doctrine-orm-admin-bundle Version >=3.1
blast-project/core-bundle Version self.version
friendsofsymfony/jsrouting-bundle Version >=1.6