Created
September 19, 2012 21:57
-
-
Save mnapoli/3752568 to your computer and use it in GitHub Desktop.
PHP Dependency Injection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass { | |
/** | |
* @Inject | |
* @var MyService | |
*/ | |
private $service; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment