Reputation: 1446
How I can get the array returned by config/autoload in zend framework 2?
#config/autoload/myconfig.local.php
return array('foo' => 'bar');
I noticed if the file have not "return array()" an exception will throw
Upvotes: 0
Views: 31
Reputation: 3408
This config is merged automatically in the whole app config. You can get this by calling
$sl->get('config')
on your ServiceManager. There will be all the config you have.
Upvotes: 1