@@ -13,7 +13,7 @@ |
||
| 13 | 13 | class IndexController extends AbstractActionController |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | - * @return mixed |
|
| 16 | + * @return ViewModel |
|
| 17 | 17 | */ |
| 18 | 18 | public function indexAction() |
| 19 | 19 | { |
@@ -12,16 +12,16 @@ |
||
| 12 | 12 | |
| 13 | 13 | class IndexController extends AbstractActionController |
| 14 | 14 | { |
| 15 | - /** |
|
| 16 | - * @return mixed |
|
| 17 | - */ |
|
| 18 | - public function indexAction() |
|
| 19 | - { |
|
| 20 | - $this->layout()->setVariables([ |
|
| 21 | - 'bodyCssClass' => 'home', |
|
| 22 | - 'contentWrapperClass' => 'home-content-wrapper' |
|
| 23 | - ]); |
|
| 15 | + /** |
|
| 16 | + * @return mixed |
|
| 17 | + */ |
|
| 18 | + public function indexAction() |
|
| 19 | + { |
|
| 20 | + $this->layout()->setVariables([ |
|
| 21 | + 'bodyCssClass' => 'home', |
|
| 22 | + 'contentWrapperClass' => 'home-content-wrapper' |
|
| 23 | + ]); |
|
| 24 | 24 | |
| 25 | - return new ViewModel(); |
|
| 26 | - } |
|
| 25 | + return new ViewModel(); |
|
| 26 | + } |
|
| 27 | 27 | } |
@@ -6,63 +6,63 @@ |
||
| 6 | 6 | * @see https://docs.zendframework.com/tutorials/advanced-config/#environment-specific-application-configuration |
| 7 | 7 | */ |
| 8 | 8 | return [ |
| 9 | - // Retrieve list of modules used in this application. |
|
| 10 | - 'modules' => require __DIR__ . '/modules.config.php', |
|
| 9 | + // Retrieve list of modules used in this application. |
|
| 10 | + 'modules' => require __DIR__ . '/modules.config.php', |
|
| 11 | 11 | |
| 12 | - // These are various options for the listeners attached to the ModuleManager |
|
| 13 | - 'module_listener_options' => [ |
|
| 14 | - // This should be an array of paths in which modules reside. |
|
| 15 | - // If a string key is provided, the listener will consider that a module |
|
| 16 | - // namespace, the value of that key the specific path to that module's |
|
| 17 | - // Module class. |
|
| 18 | - 'module_paths' => [ |
|
| 19 | - './module', |
|
| 20 | - './vendor', |
|
| 21 | - ], |
|
| 12 | + // These are various options for the listeners attached to the ModuleManager |
|
| 13 | + 'module_listener_options' => [ |
|
| 14 | + // This should be an array of paths in which modules reside. |
|
| 15 | + // If a string key is provided, the listener will consider that a module |
|
| 16 | + // namespace, the value of that key the specific path to that module's |
|
| 17 | + // Module class. |
|
| 18 | + 'module_paths' => [ |
|
| 19 | + './module', |
|
| 20 | + './vendor', |
|
| 21 | + ], |
|
| 22 | 22 | |
| 23 | - // An array of paths from which to glob configuration files after |
|
| 24 | - // modules are loaded. These effectively override configuration |
|
| 25 | - // provided by modules themselves. Paths may use GLOB_BRACE notation. |
|
| 26 | - 'config_glob_paths' => [ |
|
| 27 | - realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php', |
|
| 28 | - ], |
|
| 23 | + // An array of paths from which to glob configuration files after |
|
| 24 | + // modules are loaded. These effectively override configuration |
|
| 25 | + // provided by modules themselves. Paths may use GLOB_BRACE notation. |
|
| 26 | + 'config_glob_paths' => [ |
|
| 27 | + realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php', |
|
| 28 | + ], |
|
| 29 | 29 | |
| 30 | - // Whether or not to enable a configuration cache. |
|
| 31 | - // If enabled, the merged configuration will be cached and used in |
|
| 32 | - // subsequent requests. |
|
| 33 | - 'config_cache_enabled' => true, |
|
| 30 | + // Whether or not to enable a configuration cache. |
|
| 31 | + // If enabled, the merged configuration will be cached and used in |
|
| 32 | + // subsequent requests. |
|
| 33 | + 'config_cache_enabled' => true, |
|
| 34 | 34 | |
| 35 | - // The key used to create the configuration cache file name. |
|
| 36 | - 'config_cache_key' => 'application.config.cache', |
|
| 35 | + // The key used to create the configuration cache file name. |
|
| 36 | + 'config_cache_key' => 'application.config.cache', |
|
| 37 | 37 | |
| 38 | - // Whether or not to enable a module class map cache. |
|
| 39 | - // If enabled, creates a module class map cache which will be used |
|
| 40 | - // by in future requests, to reduce the autoloading process. |
|
| 41 | - 'module_map_cache_enabled' => true, |
|
| 38 | + // Whether or not to enable a module class map cache. |
|
| 39 | + // If enabled, creates a module class map cache which will be used |
|
| 40 | + // by in future requests, to reduce the autoloading process. |
|
| 41 | + 'module_map_cache_enabled' => true, |
|
| 42 | 42 | |
| 43 | - // The key used to create the class map cache file name. |
|
| 44 | - 'module_map_cache_key' => 'application.module.cache', |
|
| 43 | + // The key used to create the class map cache file name. |
|
| 44 | + 'module_map_cache_key' => 'application.module.cache', |
|
| 45 | 45 | |
| 46 | - // The path in which to cache merged configuration. |
|
| 47 | - 'cache_dir' => 'data/cache/', |
|
| 46 | + // The path in which to cache merged configuration. |
|
| 47 | + 'cache_dir' => 'data/cache/', |
|
| 48 | 48 | |
| 49 | - // Whether or not to enable modules dependency checking. |
|
| 50 | - // Enabled by default, prevents usage of modules that depend on other modules |
|
| 51 | - // that weren't loaded. |
|
| 52 | - // 'check_dependencies' => true, |
|
| 53 | - ], |
|
| 49 | + // Whether or not to enable modules dependency checking. |
|
| 50 | + // Enabled by default, prevents usage of modules that depend on other modules |
|
| 51 | + // that weren't loaded. |
|
| 52 | + // 'check_dependencies' => true, |
|
| 53 | + ], |
|
| 54 | 54 | |
| 55 | - // Used to create an own service manager. May contain one or more child arrays. |
|
| 56 | - // 'service_listener_options' => [ |
|
| 57 | - // [ |
|
| 58 | - // 'service_manager' => $stringServiceManagerName, |
|
| 59 | - // 'config_key' => $stringConfigKey, |
|
| 60 | - // 'interface' => $stringOptionalInterface, |
|
| 61 | - // 'method' => $stringRequiredMethodName, |
|
| 62 | - // ], |
|
| 63 | - // ], |
|
| 55 | + // Used to create an own service manager. May contain one or more child arrays. |
|
| 56 | + // 'service_listener_options' => [ |
|
| 57 | + // [ |
|
| 58 | + // 'service_manager' => $stringServiceManagerName, |
|
| 59 | + // 'config_key' => $stringConfigKey, |
|
| 60 | + // 'interface' => $stringOptionalInterface, |
|
| 61 | + // 'method' => $stringRequiredMethodName, |
|
| 62 | + // ], |
|
| 63 | + // ], |
|
| 64 | 64 | |
| 65 | - // Initial configuration with which to seed the ServiceManager. |
|
| 66 | - // Should be compatible with Zend\ServiceManager\Config. |
|
| 67 | - // 'service_manager' => [], |
|
| 65 | + // Initial configuration with which to seed the ServiceManager. |
|
| 66 | + // Should be compatible with Zend\ServiceManager\Config. |
|
| 67 | + // 'service_manager' => [], |
|
| 68 | 68 | ]; |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | */ |
| 8 | 8 | return [ |
| 9 | 9 | // Retrieve list of modules used in this application. |
| 10 | - 'modules' => require __DIR__ . '/modules.config.php', |
|
| 10 | + 'modules' => require __DIR__.'/modules.config.php', |
|
| 11 | 11 | |
| 12 | 12 | // These are various options for the listeners attached to the ModuleManager |
| 13 | 13 | 'module_listener_options' => [ |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | // modules are loaded. These effectively override configuration |
| 25 | 25 | // provided by modules themselves. Paths may use GLOB_BRACE notation. |
| 26 | 26 | 'config_glob_paths' => [ |
| 27 | - realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php', |
|
| 27 | + realpath(__DIR__).'/autoload/{{,*.}global,{,*.}local}.php', |
|
| 28 | 28 | ], |
| 29 | 29 | |
| 30 | 30 | // Whether or not to enable a configuration cache. |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | return [ |
| 15 | - 'db' => [ |
|
| 16 | - 'driver' => 'Pdo', |
|
| 17 | - 'dsn' => 'mysql:dbname=min_ambiente;host=127.0.0.1;charset=utf8', |
|
| 18 | - 'driver_options' => [ |
|
| 19 | - PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\'' |
|
| 20 | - ], |
|
| 21 | - ], |
|
| 15 | + 'db' => [ |
|
| 16 | + 'driver' => 'Pdo', |
|
| 17 | + 'dsn' => 'mysql:dbname=min_ambiente;host=127.0.0.1;charset=utf8', |
|
| 18 | + 'driver_options' => [ |
|
| 19 | + PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\'' |
|
| 20 | + ], |
|
| 21 | + ], |
|
| 22 | 22 | ]; |
@@ -11,154 +11,154 @@ |
||
| 11 | 11 | * It will be enabled when you enable development mode. |
| 12 | 12 | */ |
| 13 | 13 | return [ |
| 14 | - 'zenddevelopertools' => [ |
|
| 15 | - /** |
|
| 16 | - * General Profiler settings |
|
| 17 | - */ |
|
| 18 | - 'profiler' => [ |
|
| 19 | - /** |
|
| 20 | - * Enables or disables the profiler. |
|
| 21 | - * |
|
| 22 | - * Expects: bool |
|
| 23 | - * Default: true |
|
| 24 | - */ |
|
| 25 | - 'enabled' => true, |
|
| 14 | + 'zenddevelopertools' => [ |
|
| 15 | + /** |
|
| 16 | + * General Profiler settings |
|
| 17 | + */ |
|
| 18 | + 'profiler' => [ |
|
| 19 | + /** |
|
| 20 | + * Enables or disables the profiler. |
|
| 21 | + * |
|
| 22 | + * Expects: bool |
|
| 23 | + * Default: true |
|
| 24 | + */ |
|
| 25 | + 'enabled' => true, |
|
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * Enables or disables the strict mode. If the strict mode is enabled, any error will throw an exception, |
|
| 29 | - * otherwise all errors will be added to the report (and shown in the toolbar). |
|
| 30 | - * |
|
| 31 | - * Expects: bool |
|
| 32 | - * Default: true |
|
| 33 | - */ |
|
| 34 | - 'strict' => true, |
|
| 27 | + /** |
|
| 28 | + * Enables or disables the strict mode. If the strict mode is enabled, any error will throw an exception, |
|
| 29 | + * otherwise all errors will be added to the report (and shown in the toolbar). |
|
| 30 | + * |
|
| 31 | + * Expects: bool |
|
| 32 | + * Default: true |
|
| 33 | + */ |
|
| 34 | + 'strict' => true, |
|
| 35 | 35 | |
| 36 | - /** |
|
| 37 | - * If enabled, the profiler tries to flush the content before the it starts collecting data. This option |
|
| 38 | - * will be ignored if the Toolbar is enabled. |
|
| 39 | - * |
|
| 40 | - * Note: The flush listener listens to the MvcEvent::EVENT_FINISH event with a priority of -9400. You have |
|
| 41 | - * to disable this function if you wish to modify the output with a lower priority. |
|
| 42 | - * |
|
| 43 | - * Expects: bool |
|
| 44 | - * Default: false |
|
| 45 | - */ |
|
| 46 | - 'flush_early' => false, |
|
| 36 | + /** |
|
| 37 | + * If enabled, the profiler tries to flush the content before the it starts collecting data. This option |
|
| 38 | + * will be ignored if the Toolbar is enabled. |
|
| 39 | + * |
|
| 40 | + * Note: The flush listener listens to the MvcEvent::EVENT_FINISH event with a priority of -9400. You have |
|
| 41 | + * to disable this function if you wish to modify the output with a lower priority. |
|
| 42 | + * |
|
| 43 | + * Expects: bool |
|
| 44 | + * Default: false |
|
| 45 | + */ |
|
| 46 | + 'flush_early' => false, |
|
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * The cache directory is used in the version check and for every storage type that writes to the disk. |
|
| 50 | - * Note: The default value assumes that the current working directory is the application root. |
|
| 51 | - * |
|
| 52 | - * Expects: string |
|
| 53 | - * Default: 'data/cache' |
|
| 54 | - */ |
|
| 55 | - 'cache_dir' => 'data/cache', |
|
| 48 | + /** |
|
| 49 | + * The cache directory is used in the version check and for every storage type that writes to the disk. |
|
| 50 | + * Note: The default value assumes that the current working directory is the application root. |
|
| 51 | + * |
|
| 52 | + * Expects: string |
|
| 53 | + * Default: 'data/cache' |
|
| 54 | + */ |
|
| 55 | + 'cache_dir' => 'data/cache', |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * If a matches is defined, the profiler will be disabled if the request does not match the pattern. |
|
| 59 | - * |
|
| 60 | - * Example: 'matcher' => array('ip' => '127.0.0.1') |
|
| 61 | - * OR |
|
| 62 | - * 'matcher' => array('url' => array('path' => '/admin') |
|
| 63 | - * Note: The matcher is not implemented yet! |
|
| 64 | - */ |
|
| 65 | - 'matcher' => [], |
|
| 57 | + /** |
|
| 58 | + * If a matches is defined, the profiler will be disabled if the request does not match the pattern. |
|
| 59 | + * |
|
| 60 | + * Example: 'matcher' => array('ip' => '127.0.0.1') |
|
| 61 | + * OR |
|
| 62 | + * 'matcher' => array('url' => array('path' => '/admin') |
|
| 63 | + * Note: The matcher is not implemented yet! |
|
| 64 | + */ |
|
| 65 | + 'matcher' => [], |
|
| 66 | 66 | |
| 67 | - /** |
|
| 68 | - * Contains a list with all collector the profiler should run. Zend Developer Tools ships with |
|
| 69 | - * 'db' (Zend\Db), 'time', 'event', 'memory', 'exception', 'request' and 'mail' (Zend\Mail). If you wish to |
|
| 70 | - * disable a default collector, simply set the value to null or false. |
|
| 71 | - * |
|
| 72 | - * Example: 'collectors' => array('db' => null) |
|
| 73 | - * Expects: array |
|
| 74 | - */ |
|
| 75 | - 'collectors' => [], |
|
| 76 | - ], |
|
| 77 | - 'events' => [ |
|
| 78 | - /** |
|
| 79 | - * Set to true to enable event-level logging for collectors that will support it. This enables a wildcard |
|
| 80 | - * listener onto the shared event manager that will allow profiling of user-defined events as well as the |
|
| 81 | - * built-in ZF events. |
|
| 82 | - * |
|
| 83 | - * Expects: bool |
|
| 84 | - * Default: false |
|
| 85 | - */ |
|
| 86 | - 'enabled' => true, |
|
| 67 | + /** |
|
| 68 | + * Contains a list with all collector the profiler should run. Zend Developer Tools ships with |
|
| 69 | + * 'db' (Zend\Db), 'time', 'event', 'memory', 'exception', 'request' and 'mail' (Zend\Mail). If you wish to |
|
| 70 | + * disable a default collector, simply set the value to null or false. |
|
| 71 | + * |
|
| 72 | + * Example: 'collectors' => array('db' => null) |
|
| 73 | + * Expects: array |
|
| 74 | + */ |
|
| 75 | + 'collectors' => [], |
|
| 76 | + ], |
|
| 77 | + 'events' => [ |
|
| 78 | + /** |
|
| 79 | + * Set to true to enable event-level logging for collectors that will support it. This enables a wildcard |
|
| 80 | + * listener onto the shared event manager that will allow profiling of user-defined events as well as the |
|
| 81 | + * built-in ZF events. |
|
| 82 | + * |
|
| 83 | + * Expects: bool |
|
| 84 | + * Default: false |
|
| 85 | + */ |
|
| 86 | + 'enabled' => true, |
|
| 87 | 87 | |
| 88 | - /** |
|
| 89 | - * Contains a list with all event-level collectors that should run. Zend Developer Tools ships with 'time' |
|
| 90 | - * and 'memory'. If you wish to disable a default collector, simply set the value to null or false. |
|
| 91 | - * |
|
| 92 | - * Example: 'collectors' => array('memory' => null) |
|
| 93 | - * Expects: array |
|
| 94 | - */ |
|
| 95 | - 'collectors' => [], |
|
| 88 | + /** |
|
| 89 | + * Contains a list with all event-level collectors that should run. Zend Developer Tools ships with 'time' |
|
| 90 | + * and 'memory'. If you wish to disable a default collector, simply set the value to null or false. |
|
| 91 | + * |
|
| 92 | + * Example: 'collectors' => array('memory' => null) |
|
| 93 | + * Expects: array |
|
| 94 | + */ |
|
| 95 | + 'collectors' => [], |
|
| 96 | 96 | |
| 97 | - /** |
|
| 98 | - * Contains event identifiers used with the event listener. Zend Developer Tools defaults to listen to all |
|
| 99 | - * events. If you wish to disable the default all-inclusive identifier, simply set the value to null or |
|
| 100 | - * false. |
|
| 101 | - * |
|
| 102 | - * Example: 'identifiers' => array('all' => null, 'dispatchable' => 'Zend\Stdlib\DispatchableInterface') |
|
| 103 | - * Expects: array |
|
| 104 | - */ |
|
| 105 | - 'identifiers' => [], |
|
| 106 | - ], |
|
| 107 | - /** |
|
| 108 | - * General Toolbar settings |
|
| 109 | - */ |
|
| 110 | - 'toolbar' => [ |
|
| 111 | - /** |
|
| 112 | - * Enables or disables the Toolbar. |
|
| 113 | - * |
|
| 114 | - * Expects: bool |
|
| 115 | - * Default: false |
|
| 116 | - */ |
|
| 117 | - 'enabled' => true, |
|
| 97 | + /** |
|
| 98 | + * Contains event identifiers used with the event listener. Zend Developer Tools defaults to listen to all |
|
| 99 | + * events. If you wish to disable the default all-inclusive identifier, simply set the value to null or |
|
| 100 | + * false. |
|
| 101 | + * |
|
| 102 | + * Example: 'identifiers' => array('all' => null, 'dispatchable' => 'Zend\Stdlib\DispatchableInterface') |
|
| 103 | + * Expects: array |
|
| 104 | + */ |
|
| 105 | + 'identifiers' => [], |
|
| 106 | + ], |
|
| 107 | + /** |
|
| 108 | + * General Toolbar settings |
|
| 109 | + */ |
|
| 110 | + 'toolbar' => [ |
|
| 111 | + /** |
|
| 112 | + * Enables or disables the Toolbar. |
|
| 113 | + * |
|
| 114 | + * Expects: bool |
|
| 115 | + * Default: false |
|
| 116 | + */ |
|
| 117 | + 'enabled' => true, |
|
| 118 | 118 | |
| 119 | - /** |
|
| 120 | - * If enabled, every empty collector will be hidden. |
|
| 121 | - * |
|
| 122 | - * Expects: bool |
|
| 123 | - * Default: false |
|
| 124 | - */ |
|
| 125 | - 'auto_hide' => false, |
|
| 119 | + /** |
|
| 120 | + * If enabled, every empty collector will be hidden. |
|
| 121 | + * |
|
| 122 | + * Expects: bool |
|
| 123 | + * Default: false |
|
| 124 | + */ |
|
| 125 | + 'auto_hide' => false, |
|
| 126 | 126 | |
| 127 | - /** |
|
| 128 | - * The Toolbar position. |
|
| 129 | - * |
|
| 130 | - * Expects: string ('bottom' or 'top') |
|
| 131 | - * Default: bottom |
|
| 132 | - */ |
|
| 133 | - 'position' => 'bottom', |
|
| 127 | + /** |
|
| 128 | + * The Toolbar position. |
|
| 129 | + * |
|
| 130 | + * Expects: string ('bottom' or 'top') |
|
| 131 | + * Default: bottom |
|
| 132 | + */ |
|
| 133 | + 'position' => 'bottom', |
|
| 134 | 134 | |
| 135 | - /** |
|
| 136 | - * If enabled, the Toolbar will check if your current Zend Framework version is up-to-date. |
|
| 137 | - * Note: The check will only occur once every hour. |
|
| 138 | - * |
|
| 139 | - * Expects: bool |
|
| 140 | - * Default: false |
|
| 141 | - */ |
|
| 142 | - 'version_check' => false, |
|
| 135 | + /** |
|
| 136 | + * If enabled, the Toolbar will check if your current Zend Framework version is up-to-date. |
|
| 137 | + * Note: The check will only occur once every hour. |
|
| 138 | + * |
|
| 139 | + * Expects: bool |
|
| 140 | + * Default: false |
|
| 141 | + */ |
|
| 142 | + 'version_check' => false, |
|
| 143 | 143 | |
| 144 | - /** |
|
| 145 | - * Contains a list with all collector toolbar templates. The name of the array key must be same as the name |
|
| 146 | - * of the collector. |
|
| 147 | - * |
|
| 148 | - * Example: 'profiler' => array( |
|
| 149 | - * 'collectors' => array( |
|
| 150 | - * // My_Collector_Example::getName() -> mycollector |
|
| 151 | - * 'MyCollector' => 'My_Collector_Example', |
|
| 152 | - * ) |
|
| 153 | - * ), |
|
| 154 | - * 'toolbar' => array( |
|
| 155 | - * 'entries' => array( |
|
| 156 | - * 'mycollector' => 'example/toolbar/my-collector', |
|
| 157 | - * ) |
|
| 158 | - * ), |
|
| 159 | - * Expects: array |
|
| 160 | - */ |
|
| 161 | - 'entries' => [], |
|
| 162 | - ], |
|
| 163 | - ], |
|
| 144 | + /** |
|
| 145 | + * Contains a list with all collector toolbar templates. The name of the array key must be same as the name |
|
| 146 | + * of the collector. |
|
| 147 | + * |
|
| 148 | + * Example: 'profiler' => array( |
|
| 149 | + * 'collectors' => array( |
|
| 150 | + * // My_Collector_Example::getName() -> mycollector |
|
| 151 | + * 'MyCollector' => 'My_Collector_Example', |
|
| 152 | + * ) |
|
| 153 | + * ), |
|
| 154 | + * 'toolbar' => array( |
|
| 155 | + * 'entries' => array( |
|
| 156 | + * 'mycollector' => 'example/toolbar/my-collector', |
|
| 157 | + * ) |
|
| 158 | + * ), |
|
| 159 | + * Expects: array |
|
| 160 | + */ |
|
| 161 | + 'entries' => [], |
|
| 162 | + ], |
|
| 163 | + ], |
|
| 164 | 164 | ]; |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | * This should be an array of module namespaces used in the application. |
| 12 | 12 | */ |
| 13 | 13 | return [ |
| 14 | - 'Zend\Mvc\Console', |
|
| 15 | - 'Zend\Filter', |
|
| 16 | - 'Zend\Serializer', |
|
| 17 | - 'Zend\Hydrator', |
|
| 18 | - 'Zend\Db', |
|
| 19 | - 'Zend\Log', |
|
| 20 | - 'Zend\Router', |
|
| 21 | - 'Zend\Validator', |
|
| 22 | - 'Application', |
|
| 23 | - 'Api', |
|
| 14 | + 'Zend\Mvc\Console', |
|
| 15 | + 'Zend\Filter', |
|
| 16 | + 'Zend\Serializer', |
|
| 17 | + 'Zend\Hydrator', |
|
| 18 | + 'Zend\Db', |
|
| 19 | + 'Zend\Log', |
|
| 20 | + 'Zend\Router', |
|
| 21 | + 'Zend\Validator', |
|
| 22 | + 'Application', |
|
| 23 | + 'Api', |
|
| 24 | 24 | ]; |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | return [ |
| 9 | - // Additional modules to include when in development mode |
|
| 10 | - 'modules' => [ |
|
| 11 | - ], |
|
| 12 | - // Configuration overrides during development mode |
|
| 13 | - 'module_listener_options' => [ |
|
| 14 | - 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'], |
|
| 15 | - 'config_cache_enabled' => false, |
|
| 16 | - 'module_map_cache_enabled' => false, |
|
| 17 | - ], |
|
| 9 | + // Additional modules to include when in development mode |
|
| 10 | + 'modules' => [ |
|
| 11 | + ], |
|
| 12 | + // Configuration overrides during development mode |
|
| 13 | + 'module_listener_options' => [ |
|
| 14 | + 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'], |
|
| 15 | + 'config_cache_enabled' => false, |
|
| 16 | + 'module_map_cache_enabled' => false, |
|
| 17 | + ], |
|
| 18 | 18 | ]; |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | ], |
| 12 | 12 | // Configuration overrides during development mode |
| 13 | 13 | 'module_listener_options' => [ |
| 14 | - 'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'], |
|
| 14 | + 'config_glob_paths' => [realpath(__DIR__).'/autoload/{,*.}{global,local}-development.php'], |
|
| 15 | 15 | 'config_cache_enabled' => false, |
| 16 | 16 | 'module_map_cache_enabled' => false, |
| 17 | 17 | ], |
@@ -11,29 +11,29 @@ |
||
| 11 | 11 | |
| 12 | 12 | // Decline static file requests back to the PHP built-in webserver |
| 13 | 13 | if (php_sapi_name() === 'cli-server') { |
| 14 | - $path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
| 15 | - if (__FILE__ !== $path && is_file($path)) { |
|
| 16 | - return false; |
|
| 17 | - } |
|
| 18 | - unset($path); |
|
| 14 | + $path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
| 15 | + if (__FILE__ !== $path && is_file($path)) { |
|
| 16 | + return false; |
|
| 17 | + } |
|
| 18 | + unset($path); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // Composer autoloading |
| 22 | 22 | include __DIR__ . '/../vendor/autoload.php'; |
| 23 | 23 | |
| 24 | 24 | if (! class_exists(Application::class)) { |
| 25 | - throw new RuntimeException( |
|
| 26 | - "Unable to load application.\n" |
|
| 27 | - . "- Type `composer install` if you are developing locally.\n" |
|
| 28 | - . "- Type `vagrant ssh -c 'composer install'` if you are using Vagrant.\n" |
|
| 29 | - . "- Type `docker-compose run zf composer install` if you are using Docker.\n" |
|
| 30 | - ); |
|
| 25 | + throw new RuntimeException( |
|
| 26 | + "Unable to load application.\n" |
|
| 27 | + . "- Type `composer install` if you are developing locally.\n" |
|
| 28 | + . "- Type `vagrant ssh -c 'composer install'` if you are using Vagrant.\n" |
|
| 29 | + . "- Type `docker-compose run zf composer install` if you are using Docker.\n" |
|
| 30 | + ); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | // Retrieve configuration |
| 34 | 34 | $appConfig = require __DIR__ . '/../config/application.config.php'; |
| 35 | 35 | if (file_exists(__DIR__ . '/../config/development.config.php')) { |
| 36 | - $appConfig = ArrayUtils::merge($appConfig, require __DIR__ . '/../config/development.config.php'); |
|
| 36 | + $appConfig = ArrayUtils::merge($appConfig, require __DIR__ . '/../config/development.config.php'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | // Run the application! |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | // Decline static file requests back to the PHP built-in webserver |
| 13 | 13 | if (php_sapi_name() === 'cli-server') { |
| 14 | - $path = realpath(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
| 14 | + $path = realpath(__DIR__.parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); |
|
| 15 | 15 | if (__FILE__ !== $path && is_file($path)) { |
| 16 | 16 | return false; |
| 17 | 17 | } |
@@ -19,9 +19,9 @@ discard block |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // Composer autoloading |
| 22 | -include __DIR__ . '/../vendor/autoload.php'; |
|
| 22 | +include __DIR__.'/../vendor/autoload.php'; |
|
| 23 | 23 | |
| 24 | -if (! class_exists(Application::class)) { |
|
| 24 | +if (!class_exists(Application::class)) { |
|
| 25 | 25 | throw new RuntimeException( |
| 26 | 26 | "Unable to load application.\n" |
| 27 | 27 | . "- Type `composer install` if you are developing locally.\n" |
@@ -31,9 +31,9 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | // Retrieve configuration |
| 34 | -$appConfig = require __DIR__ . '/../config/application.config.php'; |
|
| 35 | -if (file_exists(__DIR__ . '/../config/development.config.php')) { |
|
| 36 | - $appConfig = ArrayUtils::merge($appConfig, require __DIR__ . '/../config/development.config.php'); |
|
| 34 | +$appConfig = require __DIR__.'/../config/application.config.php'; |
|
| 35 | +if (file_exists(__DIR__.'/../config/development.config.php')) { |
|
| 36 | + $appConfig = ArrayUtils::merge($appConfig, require __DIR__.'/../config/development.config.php'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | // Run the application! |
@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | -return array ( |
|
| 2 | +return array( |
|
| 3 | 3 | ); |
| 4 | 4 | \ No newline at end of file |
@@ -12,12 +12,12 @@ |
||
| 12 | 12 | |
| 13 | 13 | class ResultsController extends AbstractActionController |
| 14 | 14 | { |
| 15 | - public function indexAction() |
|
| 16 | - { |
|
| 17 | - $this->layout()->setVariables([ |
|
| 18 | - 'contentWrapperClass' => 'content-wrapper' |
|
| 19 | - ]); |
|
| 15 | + public function indexAction() |
|
| 16 | + { |
|
| 17 | + $this->layout()->setVariables([ |
|
| 18 | + 'contentWrapperClass' => 'content-wrapper' |
|
| 19 | + ]); |
|
| 20 | 20 | |
| 21 | - return new ViewModel(); |
|
| 22 | - } |
|
| 21 | + return new ViewModel(); |
|
| 22 | + } |
|
| 23 | 23 | } |