Skip to content

Instantly share code, notes, and snippets.

@tux-rampage
Created December 3, 2018 14:37
Show Gist options
  • Save tux-rampage/68c16a2382766b6ef8b5fa1470f8ac87 to your computer and use it in GitHub Desktop.
Save tux-rampage/68c16a2382766b6ef8b5fa1470f8ac87 to your computer and use it in GitHub Desktop.
zend-di inject config service
<?php
return [
'dependencies' => [
'auto' => [
'types' => [
\App\MyService::class => [
'parameters' => [
'config' => new \Zend\Di\Resolver\ServiceInjection('config'),
],
],
],
],
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment