- PHP-DI integration for Elgg
- Place the plugin above all others in your plugin list and enable
- To register a new service, add
config/di.php
to your plugin root and return an array of services you want to register - You can access services via
elgg_di()->$service_name
- To disable container compilation/caching - set
$CONFIG->environment = 'development'
- You can set site-wide config by creating
oonfig/config.php
in your plugin, and returning an array of key value pairs. Note that plugins with higher priority with override config previously defined in other plugins.