Skip to content

Instantly share code, notes, and snippets.

@woodworker
Created September 23, 2013 19:41
Show Gist options
  • Save woodworker/6675826 to your computer and use it in GitHub Desktop.
Save woodworker/6675826 to your computer and use it in GitHub Desktop.
Sample DIC Config
<?php
return array(
Doctrine\Common\Annotations\AnnotationReader::class => [
'provider' => [
'class' => Acme\Provider\AnnotationReaderProvider::class
]
],
Symfony\Component\HttpFoundation\Request::class => [
'provider' => [
'class' => Acme\Provider\CurrentRequestProvider::class
]
],
p2ee\Preparables\Preparer::class => [
'provider' => [
'class' => Acme\Provider\PreparerProvider::class
]
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment