Skip to content

Instantly share code, notes, and snippets.

@fdewinne
Created August 6, 2013 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdewinne/6164956 to your computer and use it in GitHub Desktop.
Save fdewinne/6164956 to your computer and use it in GitHub Desktop.
application.config.php
<?php
/**
* navigation.global.php
*
* @date 10/04/13
* @author Frederic Dewinne <frederic.dewinne@vaconsulting.lu>
* @file application.config.php
* @copyright Copyright (c) Foyer - All rights reserved
* @license Unauthorized copying of this source code, via any medium is strictly
* prohibited, proprietary and confidential.
*/
return [
'modules' =>
[
'Application',
'Frontend',
'Api',
'DoctrineModule',
'DoctrineORMModule',
'ZendDeveloperTools',
'DoctrineDataFixtureModule',
'ErrorManager',
],
'module_listener_options' =>
[
'config_glob_paths' =>
[
'config/autoload/{,*.}{global,local,' . getenv('APPLICATION_ENV') . '}.php',
],
'module_paths' =>
[
'./module',
'./vendor',
]
],
'service_manager' =>
[
'invokables' =>
[
'doctrine.naming_strategy.underscore' => 'Doctrine\ORM\Mapping\UnderscoreNamingStrategy',
],
'factories' =>
[
'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
'navigation_default' => 'Zend\Navigation\Service\DefaultNavigationFactory',
'Zend\Log' => function() {
$log = new Zend\Log\Logger();
$appWrite = new Zend\Log\Writer\Stream('data/logs/application.log');
$log->addWriter($appWrite);
return $log;
},
],
'aliases' =>
[
'entity_manager' => 'Doctrine\ORM\EntityManager',
'em' => 'Doctrine\ORM\EntityManager',
'navigation' => 'navigation_default'
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment