Commit 2fe7d95f authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Actualisation du skelette d'application!!

parent cc0edc60
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -8,9 +8,14 @@
        }
    ],
    "require": {
        "unicaen/unicaen-app":                  "1.2.2",
        "unicaen/unicaen-auth":                 "1.1.0",
        "zendframework/zend-developer-tools":   "dev-master",
        "unicaen/unicaen-code":                 "1.0"
        "unicaen/unicaen-app":                  "1.2.42",
        "unicaen/unicaen-auth":                 "1.1.8",
    },
    "require-dev": {
        "unicaen/unicaen-code":                 "1.0.11",
        "zendframework/zend-test":              ">=2.3",
        "phpunit/PHPUnit":                      ">=3.7",
        "zendframework/zend-developer-tools":   ">=1.0"
    }

}
 No newline at end of file

composer.phar

deleted100755 → 0
−1.48 MiB

File deleted.

+55 −53
Original line number Diff line number Diff line
@@ -3,78 +3,80 @@
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @copyright Copyright (c] 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

return array(
    'router' => array(
        'routes' => array(
            'home' => array(
namespace Application;

return [
    'router'          => [
        'routes' => [
            'home'        => [
                'type'    => 'Zend\Mvc\Router\Http\Literal',
                'options' => array(
                'options' => [
                    'route'    => '/',
                    'defaults' => array(
                    'defaults' => [
                        'controller' => 'Application\Controller\Index', // <-- change here
                        'action'     => 'index',
                    ),
                ),
            ),
                    ],
                ],
            ],
            // The following is a route to simplify getting started creating
            // new controllers and actions without needing to create a new
            // module. Simply drop new controllers in, and you can access them
            // using the path /application/:controller/:action
            'application' => array(
            'application' => [
                'type'          => 'Literal',
                'options' => array(
                'options'       => [
                    'route'    => '/application',
                    'defaults' => array(
                    'defaults' => [
                        '__NAMESPACE__' => 'Application\Controller',
                        'controller'    => 'Index',
                        'action'        => 'index',
                    ),
                ),
                    ],
                ],
                'may_terminate' => true,
                'child_routes' => array(
                    'default' => array(
                'child_routes'  => [
                    'default' => [
                        'type'    => 'Segment',
                        'options' => array(
                        'options' => [
                            'route'       => '/[:controller[/:action]]',
                            'constraints' => array(
                            'constraints' => [
                                'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                            ),
                            'defaults' => array(
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
    'service_manager' => array(
        'factories' => array(
                            ],
                            'defaults'    => [
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
    'service_manager' => [
        'factories' => [

        ),
    ),
    'translator' => array(
        ],
    ],
    'translator'      => [
        'locale'                    => 'fr_FR', // en_US
        'translation_file_patterns' => array(
            array(
        'translation_file_patterns' => [
            [
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
            ),
        ),
    ),
    'controllers' => array(
        'invokables' => array(
            'Application\Controller\Index' => 'Application\Controller\IndexController',
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            ],
        ],
    ],
    'controllers'     => [
        'invokables' => [
            'Application\Controller\Index' => Controller\IndexController::class,
        ],
    ],
    'view_manager'    => [
        'template_path_stack' => [
            __DIR__ . '/../view',
        ),
    ),
);
        ],
    ],
];