An array of directory paths which should be scanned for config files on
startup. Files in these directories that match config.files
will be
autoloaded and merged into the application config.
$c['config']['autoload'] = array(
'/path/to/configs',
'./alternative/path'
);
An array of file names to match when searching for config files. Globbing
options are avaialable as supported by symfony/finder
$c['config']['files'] = array(
'global.*',
'*.yml'
);
Path to directory in which to store a cached config file. Config caching is disabled when in development mode. If the directory does not exist, it will be created automatically.
$c['config']['cache'] = './data/cache/config';
Array of directories that contain view templates. This enables an application and it's modules to have separate view directories.
$c['viewPaths'] = array(
'./views'
);
Array of singleton services to be added to the Slender IoC container. They should be
added in the form array( alias => class ), where alias is the alias registered in the
IoC container and class is the class to be instanciated.
If class is an instance of Slender\FactoryInterface
, then the factories' create
method
will be called and the return value used instead.
$c['services'] = array(
'view' => 'MyModule\View\TwigViewFactory'
);
Work in much the same way as services, but are not registered as singletons - each time this object is requested from the IoC container, a different, new, instance is returned.
$c['factories'] = array(
'myObject' => 'MyModule\MyObject'
);
List of modules to require on application startup. Modules are covered in much more detail here
$c['modules'] = array(
'asset-exposer',
'twig'
);