Following Zend Framework 3, the configuration file (
application/config/module.config.php) defines many things that Omeka S depends on, including
- Routes and navigation
- API adapters
Modules add their own configuration setting via their own
module.config.php files. See Modules for more information. These configuration settings add to, and possibly modify, the core configuration.
Most important keys
The following keys in configuration are mostly likely to be of interest:
See also Services and Factories
Invocables vs Factories
You will often see subkeys of
factories in the configuration file. These refer to how Omeka S creates new objects -- either directly ('invocable') or indirectly ('factory'). Factories are used to add data or classes into the object that would otherwise be directly created (i.e., invoced). See Services and Factories for more details.
Accessing the configuration
ServiceLocator object is available, do
$config = $this->getServiceLocator()->get('Config');
$config will be the array of information. In all cases, you should know the key of the information you need.