Init du projet
This commit is contained in:
		
							
								
								
									
										68
									
								
								config/application.config.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								config/application.config.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,68 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * If you need an environment-specific system or application configuration,
 | 
			
		||||
 * there is an example in the documentation
 | 
			
		||||
 * @see https://docs.zendframework.com/tutorials/advanced-config/#environment-specific-system-configuration
 | 
			
		||||
 * @see https://docs.zendframework.com/tutorials/advanced-config/#environment-specific-application-configuration
 | 
			
		||||
 */
 | 
			
		||||
return [
 | 
			
		||||
    // Retrieve list of modules used in this application.
 | 
			
		||||
    'modules' => require __DIR__ . '/modules.config.php',
 | 
			
		||||
 | 
			
		||||
    // These are various options for the listeners attached to the ModuleManager
 | 
			
		||||
    'module_listener_options' => [
 | 
			
		||||
        // This should be an array of paths in which modules reside.
 | 
			
		||||
        // If a string key is provided, the listener will consider that a module
 | 
			
		||||
        // namespace, the value of that key the specific path to that module's
 | 
			
		||||
        // Module class.
 | 
			
		||||
        'module_paths' => [
 | 
			
		||||
            './module',
 | 
			
		||||
            './vendor',
 | 
			
		||||
        ],
 | 
			
		||||
 | 
			
		||||
        // An array of paths from which to glob configuration files after
 | 
			
		||||
        // modules are loaded. These effectively override configuration
 | 
			
		||||
        // provided by modules themselves. Paths may use GLOB_BRACE notation.
 | 
			
		||||
        'config_glob_paths' => [
 | 
			
		||||
            realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php',
 | 
			
		||||
        ],
 | 
			
		||||
 | 
			
		||||
        // Whether or not to enable a configuration cache.
 | 
			
		||||
        // If enabled, the merged configuration will be cached and used in
 | 
			
		||||
        // subsequent requests.
 | 
			
		||||
        'config_cache_enabled' => true,
 | 
			
		||||
 | 
			
		||||
        // The key used to create the configuration cache file name.
 | 
			
		||||
        'config_cache_key' => 'application.config.cache',
 | 
			
		||||
 | 
			
		||||
        // Whether or not to enable a module class map cache.
 | 
			
		||||
        // If enabled, creates a module class map cache which will be used
 | 
			
		||||
        // by in future requests, to reduce the autoloading process.
 | 
			
		||||
        'module_map_cache_enabled' => true,
 | 
			
		||||
 | 
			
		||||
        // The key used to create the class map cache file name.
 | 
			
		||||
        'module_map_cache_key' => 'application.module.cache',
 | 
			
		||||
 | 
			
		||||
        // The path in which to cache merged configuration.
 | 
			
		||||
        'cache_dir' => 'data/cache/',
 | 
			
		||||
 | 
			
		||||
        // Whether or not to enable modules dependency checking.
 | 
			
		||||
        // Enabled by default, prevents usage of modules that depend on other modules
 | 
			
		||||
        // that weren't loaded.
 | 
			
		||||
        // 'check_dependencies' => true,
 | 
			
		||||
    ],
 | 
			
		||||
 | 
			
		||||
    // Used to create an own service manager. May contain one or more child arrays.
 | 
			
		||||
    // 'service_listener_options' => [
 | 
			
		||||
    //     [
 | 
			
		||||
    //         'service_manager' => $stringServiceManagerName,
 | 
			
		||||
    //         'config_key'      => $stringConfigKey,
 | 
			
		||||
    //         'interface'       => $stringOptionalInterface,
 | 
			
		||||
    //         'method'          => $stringRequiredMethodName,
 | 
			
		||||
    //     ],
 | 
			
		||||
    // ],
 | 
			
		||||
 | 
			
		||||
    // Initial configuration with which to seed the ServiceManager.
 | 
			
		||||
    // Should be compatible with Zend\ServiceManager\Config.
 | 
			
		||||
    // 'service_manager' => [],
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										2
									
								
								config/autoload/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								config/autoload/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
local.php
 | 
			
		||||
*.local.php
 | 
			
		||||
							
								
								
									
										8
									
								
								config/autoload/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								config/autoload/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
About this directory:
 | 
			
		||||
=====================
 | 
			
		||||
 | 
			
		||||
By default, this application is configured to load all configs in
 | 
			
		||||
`./config/autoload/{,*.}{global,local}.php`. Doing this provides a
 | 
			
		||||
location for a developer to drop in configuration override files provided by
 | 
			
		||||
modules, as well as cleanly provide individual, application-wide config files
 | 
			
		||||
for things like database connections, etc.
 | 
			
		||||
							
								
								
									
										22
									
								
								config/autoload/development.local.php.dist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								config/autoload/development.local.php.dist
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * Local Configuration Override for DEVELOPMENT MODE.
 | 
			
		||||
 *
 | 
			
		||||
 * This configuration override file is for providing configuration to use while
 | 
			
		||||
 * in development mode. Run:
 | 
			
		||||
 *
 | 
			
		||||
 * <code>
 | 
			
		||||
 * $ composer development-enable
 | 
			
		||||
 * </code>
 | 
			
		||||
 *
 | 
			
		||||
 * from the project root to copy this file to development.local.php and enable
 | 
			
		||||
 * the settings it contains.
 | 
			
		||||
 *
 | 
			
		||||
 * You may also create files matching the glob pattern `{,*.}{global,local}-development.php`.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
return [
 | 
			
		||||
    'view_manager' => [
 | 
			
		||||
        'display_exceptions' => true,
 | 
			
		||||
    ],
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										16
									
								
								config/autoload/global.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								config/autoload/global.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * Global Configuration Override
 | 
			
		||||
 *
 | 
			
		||||
 * You can use this file for overriding configuration values from modules, etc.
 | 
			
		||||
 * You would place values in here that are agnostic to the environment and not
 | 
			
		||||
 * sensitive to security.
 | 
			
		||||
 *
 | 
			
		||||
 * @NOTE: In practice, this file will typically be INCLUDED in your source
 | 
			
		||||
 * control, so do not include passwords or other sensitive information in this
 | 
			
		||||
 * file.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
return [
 | 
			
		||||
    // ...
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										15
									
								
								config/autoload/local.php.dist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								config/autoload/local.php.dist
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * Local Configuration Override
 | 
			
		||||
 *
 | 
			
		||||
 * This configuration override file is for overriding environment-specific and
 | 
			
		||||
 * security-sensitive configuration information. Copy this file without the
 | 
			
		||||
 * .dist extension at the end and populate values as needed.
 | 
			
		||||
 *
 | 
			
		||||
 * @NOTE: This file is ignored from Git by default with the .gitignore included
 | 
			
		||||
 * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
 | 
			
		||||
 * credentials from accidentally being committed into version control.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
return [
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										164
									
								
								config/autoload/zend-developer-tools.local-development.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										164
									
								
								config/autoload/zend-developer-tools.local-development.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,164 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 | 
			
		||||
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 | 
			
		||||
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * This is configuration for the ZendDeveloperTools development toolbar.
 | 
			
		||||
 *
 | 
			
		||||
 * It will be enabled when you enable development mode.
 | 
			
		||||
 */
 | 
			
		||||
return [
 | 
			
		||||
    'zenddevelopertools' => [
 | 
			
		||||
        /**
 | 
			
		||||
         * General Profiler settings
 | 
			
		||||
         */
 | 
			
		||||
        'profiler' => [
 | 
			
		||||
            /**
 | 
			
		||||
             * Enables or disables the profiler.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: true
 | 
			
		||||
             */
 | 
			
		||||
            'enabled' => true,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * Enables or disables the strict mode. If the strict mode is enabled, any error will throw an exception,
 | 
			
		||||
             * otherwise all errors will be added to the report (and shown in the toolbar).
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: true
 | 
			
		||||
             */
 | 
			
		||||
            'strict' => true,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * If enabled, the profiler tries to flush the content before the it starts collecting data. This option
 | 
			
		||||
             * will be ignored if the Toolbar is enabled.
 | 
			
		||||
             *
 | 
			
		||||
             * Note: The flush listener listens to the MvcEvent::EVENT_FINISH event with a priority of -9400. You have
 | 
			
		||||
             * to disable this function if you wish to modify the output with a lower priority.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: false
 | 
			
		||||
             */
 | 
			
		||||
            'flush_early' => false,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * The cache directory is used in the version check and for every storage type that writes to the disk.
 | 
			
		||||
             * Note: The default value assumes that the current working directory is the application root.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: string
 | 
			
		||||
             * Default: 'data/cache'
 | 
			
		||||
             */
 | 
			
		||||
            'cache_dir' => 'data/cache',
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * If a matches is defined, the profiler will be disabled if the request does not match the pattern.
 | 
			
		||||
             *
 | 
			
		||||
             * Example: 'matcher' => array('ip' => '127.0.0.1')
 | 
			
		||||
             * OR
 | 
			
		||||
             * 'matcher' => array('url' => array('path' => '/admin')
 | 
			
		||||
             * Note: The matcher is not implemented yet!
 | 
			
		||||
             */
 | 
			
		||||
            'matcher' => [],
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * Contains a list with all collector the profiler should run. Zend Developer Tools ships with
 | 
			
		||||
             * 'db' (Zend\Db), 'time', 'event', 'memory', 'exception', 'request' and 'mail' (Zend\Mail). If you wish to
 | 
			
		||||
             * disable a default collector, simply set the value to null or false.
 | 
			
		||||
             *
 | 
			
		||||
             * Example: 'collectors' => array('db' => null)
 | 
			
		||||
             * Expects: 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
 | 
			
		||||
             * built-in ZF events.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: false
 | 
			
		||||
             */
 | 
			
		||||
            'enabled' => true,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * Contains a list with all event-level collectors that should run. Zend Developer Tools ships with 'time'
 | 
			
		||||
             * and 'memory'. If you wish to disable a default collector, simply set the value to null or false.
 | 
			
		||||
             *
 | 
			
		||||
             * Example: 'collectors' => array('memory' => null)
 | 
			
		||||
             * Expects: array
 | 
			
		||||
             */
 | 
			
		||||
            'collectors' => [],
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * Contains event identifiers used with the event listener. Zend Developer Tools defaults to listen to all
 | 
			
		||||
             * events. If you wish to disable the default all-inclusive identifier, simply set the value to null or
 | 
			
		||||
             * false.
 | 
			
		||||
             *
 | 
			
		||||
             * Example: 'identifiers' => array('all' => null, 'dispatchable' => 'Zend\Stdlib\DispatchableInterface')
 | 
			
		||||
             * Expects: array
 | 
			
		||||
             */
 | 
			
		||||
            'identifiers' => [],
 | 
			
		||||
        ],
 | 
			
		||||
        /**
 | 
			
		||||
         * General Toolbar settings
 | 
			
		||||
         */
 | 
			
		||||
        'toolbar' => [
 | 
			
		||||
            /**
 | 
			
		||||
             * Enables or disables the Toolbar.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: false
 | 
			
		||||
             */
 | 
			
		||||
            'enabled' => true,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * If enabled, every empty collector will be hidden.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: false
 | 
			
		||||
             */
 | 
			
		||||
            'auto_hide' => false,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * The Toolbar position.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: string ('bottom' or 'top')
 | 
			
		||||
             * Default: bottom
 | 
			
		||||
             */
 | 
			
		||||
            'position' => 'bottom',
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * If enabled, the Toolbar will check if your current Zend Framework version is up-to-date.
 | 
			
		||||
             * Note: The check will only occur once every hour.
 | 
			
		||||
             *
 | 
			
		||||
             * Expects: bool
 | 
			
		||||
             * Default: false
 | 
			
		||||
             */
 | 
			
		||||
            'version_check' => false,
 | 
			
		||||
 | 
			
		||||
            /**
 | 
			
		||||
             * Contains a list with all collector toolbar templates. The name  of the array key must be same as the name
 | 
			
		||||
             * of the collector.
 | 
			
		||||
             *
 | 
			
		||||
             * Example: 'profiler' => array(
 | 
			
		||||
             *  'collectors' => array(
 | 
			
		||||
             *      // My_Collector_Example::getName() -> mycollector
 | 
			
		||||
             *      'MyCollector' => 'My_Collector_Example',
 | 
			
		||||
             *  )
 | 
			
		||||
             * ),
 | 
			
		||||
             * 'toolbar' => array(
 | 
			
		||||
             *  'entries' => array(
 | 
			
		||||
             *      'mycollector' => 'example/toolbar/my-collector',
 | 
			
		||||
             *  )
 | 
			
		||||
             * ),
 | 
			
		||||
             * Expects: array
 | 
			
		||||
             */
 | 
			
		||||
            'entries' => [],
 | 
			
		||||
        ],
 | 
			
		||||
    ],
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										18
									
								
								config/development.config.php.dist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								config/development.config.php.dist
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 | 
			
		||||
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 | 
			
		||||
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
return [
 | 
			
		||||
    // Additional modules to include when in development mode
 | 
			
		||||
    'modules' => [
 | 
			
		||||
    ],
 | 
			
		||||
    // Configuration overrides during development mode
 | 
			
		||||
    'module_listener_options' => [
 | 
			
		||||
        'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'],
 | 
			
		||||
        'config_cache_enabled' => false,
 | 
			
		||||
        'module_map_cache_enabled' => false,
 | 
			
		||||
    ],
 | 
			
		||||
];
 | 
			
		||||
							
								
								
									
										18
									
								
								config/modules.config.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								config/modules.config.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 | 
			
		||||
 * @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
 | 
			
		||||
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * List of enabled modules for this application.
 | 
			
		||||
 *
 | 
			
		||||
 * This should be an array of module namespaces used in the application.
 | 
			
		||||
 */
 | 
			
		||||
return [
 | 
			
		||||
    'Zend\Router',
 | 
			
		||||
    'Zend\Validator',
 | 
			
		||||
    'Application',
 | 
			
		||||
    'Smarty',
 | 
			
		||||
];
 | 
			
		||||
		Reference in New Issue
	
	Block a user