Loading config/autoload/global.php +34 −4 Changes for config/autoload/global.php: 34 added lines, 4 removed lines. Original line number Diff line number Diff line <?php return array( 'translator' => array( $env = getenv('APPLICATION_ENV') ?: 'production'; return [ 'translator' => [ 'locale' => 'fr_FR', ), ); ], 'module_listener_options' => [ 'config_cache_enabled' => ($env === 'production'), 'config_cache_key' => 'app_config', 'module_map_cache_enabled' => ($env === 'production'), 'module_map_cache_key' => 'module_map', 'cache_dir' => 'data/config/', 'check_dependencies' => ($env !== 'production'), ], 'doctrine' => [ 'configuration' => [ 'orm_default' => [ 'metadata_cache' => ($env === 'production' ? 'memcached' : 'array'), 'query_cache' => ($env === 'production' ? 'memcached' : 'array'), 'result_cache' => ($env === 'production' ? 'memcached' : 'array'), 'hydration_cache' => ($env === 'production' ? 'memcached' : 'array'), 'generate_proxies' => ($env !== 'production'), ], 'orm_octopus' => [ 'metadata_cache' => ($env === 'production' ? 'memcached' : 'array'), 'query_cache' => ($env === 'production' ? 'memcached' : 'array'), 'result_cache' => ($env === 'production' ? 'memcached' : 'array'), 'hydration_cache' => ($env === 'production' ? 'memcached' : 'array'), 'generate_proxies' => ($env !== 'production'), ], ], ], ]; module/Application/view/layout/layout.phtml +2 −2 Changes for module/Application/view/layout/layout.phtml: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -48,8 +48,8 @@ <?php switch(getenv('APPLICATION_ENV')) { // case 'production' : echo "<span class='id_prod'>PROD</span>"; // break; case 'production' : //echo "<span class='id_prod'>PROD</span>"; break; case 'test' : echo "<span class='id_test'>TEST</span>"; break; case 'development' : echo "<span class='id_dev'>DEV</span>"; Loading public/.htaccess −3 Changes for public/.htaccess: 0 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -15,6 +15,3 @@ RewriteRule ^.*$ - [NC,L] RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$ RewriteRule ^(.*) - [E=BASE:%1] RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L] No newline at end of file # development par défaut, à rechanger ensuite SetEnv APPLICATION_ENV "development" No newline at end of file Loading
config/autoload/global.php +34 −4 Changes for config/autoload/global.php: 34 added lines, 4 removed lines. Original line number Diff line number Diff line <?php return array( 'translator' => array( $env = getenv('APPLICATION_ENV') ?: 'production'; return [ 'translator' => [ 'locale' => 'fr_FR', ), ); ], 'module_listener_options' => [ 'config_cache_enabled' => ($env === 'production'), 'config_cache_key' => 'app_config', 'module_map_cache_enabled' => ($env === 'production'), 'module_map_cache_key' => 'module_map', 'cache_dir' => 'data/config/', 'check_dependencies' => ($env !== 'production'), ], 'doctrine' => [ 'configuration' => [ 'orm_default' => [ 'metadata_cache' => ($env === 'production' ? 'memcached' : 'array'), 'query_cache' => ($env === 'production' ? 'memcached' : 'array'), 'result_cache' => ($env === 'production' ? 'memcached' : 'array'), 'hydration_cache' => ($env === 'production' ? 'memcached' : 'array'), 'generate_proxies' => ($env !== 'production'), ], 'orm_octopus' => [ 'metadata_cache' => ($env === 'production' ? 'memcached' : 'array'), 'query_cache' => ($env === 'production' ? 'memcached' : 'array'), 'result_cache' => ($env === 'production' ? 'memcached' : 'array'), 'hydration_cache' => ($env === 'production' ? 'memcached' : 'array'), 'generate_proxies' => ($env !== 'production'), ], ], ], ];
module/Application/view/layout/layout.phtml +2 −2 Changes for module/Application/view/layout/layout.phtml: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -48,8 +48,8 @@ <?php switch(getenv('APPLICATION_ENV')) { // case 'production' : echo "<span class='id_prod'>PROD</span>"; // break; case 'production' : //echo "<span class='id_prod'>PROD</span>"; break; case 'test' : echo "<span class='id_test'>TEST</span>"; break; case 'development' : echo "<span class='id_dev'>DEV</span>"; Loading
public/.htaccess −3 Changes for public/.htaccess: 0 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -15,6 +15,3 @@ RewriteRule ^.*$ - [NC,L] RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$ RewriteRule ^(.*) - [E=BASE:%1] RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L] No newline at end of file # development par défaut, à rechanger ensuite SetEnv APPLICATION_ENV "development" No newline at end of file