FAQ Database Discussion Community


Setting up ServiceManager with configuration files in Zend Framework 2

zend-framework,dependency-injection,zend-framework2,servicemanager
I have read ZF documentation about ServiceManager and think configuration (even in "config" php files) like public function getServiceConfig() { return array( 'invokables' => array( 'my-foo' => 'MyModule\Foo\Bar', ), ); } is very long and verbose. And, if I have a lot of dependencies, I want to use some sort...