Commit 169e6a5d authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Optimisations diverses & utilisation de templates_maps

On n'utilise plus le menu pied de page
parent 5c170d0d
Loading
Loading
Loading
Loading
+1 −33
Changes for code/test4.php: 1 added line, 33 removed lines.
Original line number Diff line number Diff line
@@ -8,36 +8,4 @@
 * @var $viewFile   string
 */


$cg = \UnicaenCode\Util::codeGenerator();


$params = [
    'generator' => 'AwareInterface',
    //'write'     => false,
    'echo'      => true,

    'classname' => \Plafond\Service\PlafondService::class,
    //'useGetter' => true,
    'subDir'    => false,
];


$cg->generate($params);


$cg = \UnicaenCode\Util::codeGenerator();


$params = [
    'generator' => 'Factory',
    //'write'     => false,
    'echo'      => true,

    'classname' => \Plafond\Form\PlafondApplicationForm::class,
    'subDir'    => true,
    'type'      => 'Form',
];


$cg->generate($params);
 No newline at end of file
echo 'prout';
 No newline at end of file
+0 −21
Changes for config/autoload/unicaen-app.global.php: 0 added lines, 21 removed lines.
Original line number Diff line number Diff line
@@ -79,25 +79,4 @@ return [
            'do_not_send'       => AppConfig::get('mail', 'envoiDesactive'),
        ],
    ],

    'navigation' => [
        'default' => [
            'home' => [
                'pages' => [
                    'etab'                     => [
                        'label' => AppConfig::get('etablissement', 'nom'),
                        'title' => AppConfig::get('etablissement', 'logoDescription'),
                        'uri'   => AppConfig::get('etablissement', 'logoUri'),
                        'class' => 'lien-univ',
                    ],
                    'mentions-legales'         => [
                        'uri' => AppConfig::get('etablissement', 'mentionsLegales'),
                    ],
                    'informatique-et-libertes' => [
                        'uri' => AppConfig::get('etablissement', 'viePrivee', AppConfig::get('etablissement', 'informatiqueEtLibertes')),
                    ],
                ],
            ],
        ],
    ],
];
+20 −20
Changes for config/autoload/zenddevelopertools.dev.php: 20 added lines, 20 removed lines.
Original line number Diff line number Diff line
<?php
return array(
    'zenddevelopertools' => array(
return [
    'zenddevelopertools' => [
        /**
         * General Profiler settings
         */
        'profiler' => array(
        'profiler' => [
            /**
             * Enables or disables the profiler.
             *
             * Expects: bool
             * Default: true
             */
            'enabled' => true,
            'enabled'     => false,

            /**
             * Enables or disables the strict mode. If the strict mode is enabled, any error will throw an exception,
@@ -51,7 +51,7 @@ return array(
             * 'matcher' => array('url' => array('path' => '/admin')
             * Note: The matcher is not implemented yet!
             */
            'matcher' => array(),
            'matcher'     => [],

            /**
             * Contains a list with all collector the profiler should run. Zend Developer Tools ships with
@@ -61,9 +61,9 @@ return array(
             * Example: 'collectors' => array('db' => null)
             * Expects: array
             */
            'collectors' => array()
        ),
        'events' => array(
            'collectors'  => [],
        ],
        'events'   => [
            /**
             * Set to true to enable event-level logging for collectors that will support it. This enables a wildcard
             * listener onto the shared event manager that will allow profiling of user-defined events as well as the
@@ -72,7 +72,7 @@ return array(
             * Expects: bool
             * Default: false
             */
            'enabled' => false,
            'enabled'     => true,

            /**
             * Contains a list with all event-level collectors that should run. Zend Developer Tools ships with 'time'
@@ -81,7 +81,7 @@ return array(
             * Example: 'collectors' => array('memory' => null)
             * Expects: array
             */
            'collectors' => array(),
            'collectors'  => [],

            /**
             * Contains event identifiers used with the event listener. Zend Developer Tools defaults to listen to all
@@ -91,12 +91,12 @@ return array(
             * Example: 'identifiers' => array('all' => null, 'dispatchable' => 'Zend\Stdlib\DispatchableInterface')
             * Expects: array
             */
            'identifiers' => array()
        ),
            'identifiers' => [],
        ],
        /**
         * General Toolbar settings
         */
        'toolbar' => array(
        'toolbar'  => [
            /**
             * Enables or disables the Toolbar.
             *
@@ -147,14 +147,14 @@ return array(
             * ),
             * Expects: array
             */
            'entries' => array(
            'entries'       => [
                'config'                                 => false,
                'db'                                     => false,
                'doctrine.mapping_collector.orm_default' => false,
                //'bjy_authorize_role_collector' => false,
                //'request' => false,
                //'memory'  => false,
            )
        )
    )
);
                //'request'                                => true,
                //'memory'                                 => true,
            ],
        ],
    ],
];
+1 −0
Changes for module/Application/Application.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ class Application
        $moduleManager = $serviceManager->get('ModuleManager');
        $moduleManager->loadModules();
        $application = $serviceManager->get('Application')->bootstrap([]);
        /** @var $application \Zend\Mvc\Application */
        $application->run();
    }

+1 −5
Changes for module/Application/config/aaa_module.config.php: 1 added line, 5 removed lines.
Original line number Diff line number Diff line
@@ -204,11 +204,7 @@ $config = [
        'template_path_stack' => [
            __DIR__ . '/../view',
        ],
        'template_map'        => [
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
            //'error/404'     => __DIR__ . '/../view/error/404.phtml',
            'error/index'   => __DIR__ . '/../view/error/index.phtml',
        ],
        'template_map'        => include __DIR__ . '/../template_map.php',
        'layout'              => 'layout/layout', // e.g., 'layout/layout'
    ],
    'public_files'       => [
Loading