The generator.yml
power for your
Symfony2
backends

Table of contents
    Fork me on GitHub

    The config.yml

    • admingenerator_generator:
      • use_doctrine_orm: false boolean Set true to activate generator services for doctrine orm
      • use_doctrine_odm: false boolean Set true to activate generator services for doctrine odm
      • use_propel: false boolean Set true to activate generator services for propel orm
      • overwrite_if_exists: false boolean Set true when you create generator template to ensure rebuild on each call, by default admin is rebuilt when generator.yml change
      • base_admin_template: AdmingeneratorOldThemeBundle::base_admin.html.twig Twig path Choose the base template for your admin
      • knp_menu_class: Admingenerator\GeneratorBundle\Menu\DefaultMenuBuilder Class path Config of the KnpMenu
      • twig:
        • use_localized_date: false boolean Use twig filter `|localizeddate` instead of `|date` in lists for date and date time fields require php-intl
        • date_format: Y-m-d string The date format givent to `|date` twig filter
        • datetime_format: Y-m-d H:i:s string The datetime format givent to `|date` twig filter
        • localized_date_format: medium short, medium, full The date format givent to `|localizeddate` twig filter
        • localized_datetime_format: medium short, medium, full The datetime format givent to `|localizeddate` twig filter
        • number_format:
          • decimal: 0 int The number of decimal for the twig number format
          • decimal_point: . string The decimal separator for the twig number format
          • thousand_separator: , string The thousand separator for the twig number format
      • templates_dirs: [] array Array of template path, the templates will be used to create the generated code
      • stylesheets: [] array Array of stylesheets you want to add in your theme for all your admin pages
        • - { path: bundles/mybundle/css/print.css, media: print }array Key path is required and media is default all
      • javascripts: [] array Array of javascripts you want to add in your theme for all your admin pages
        • - { path: bundles/mybundle/js/common.js }array Key path is required
        • - { route: fos_js_routing_js, routeparams: { callback: "fos.Router.setData" } }array Key route is required, and routeparams default is {}