Skip to content

Instantly share code, notes, and snippets.

@SocalNick
Created April 5, 2012 21:18
Show Gist options
  • Save SocalNick/2314234 to your computer and use it in GitHub Desktop.
Save SocalNick/2314234 to your computer and use it in GitHub Desktop.
ZF2 App Config with Composer
<?php
return
array(
'modules' => array(
'Application',
),
'module_listener_options' => array(
'config_cache_enabled' => true,
'cache_dir' => 'data/cache',
'config_cache_key' => 'app-cache-key',
'module_paths' => array(
'./module',
'./vendor',
),
),
'autoloaders' => array(
'Zend\Loader\ClassMapAutoloader' => array(
__DIR__ . '/../vendor/.composer/autoload_classmap.php',
),
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => include __DIR__ . '/../vendor/.composer/autoload_namespaces.php',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment