Skip to content

Commit

Permalink
Update Annotations.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Zukowsky committed Mar 21, 2016
1 parent 677f6f8 commit 1c6261b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The `AnnotationExtractor` is set as default extractor and it's working out-of-th
* [`@InjectLazy`](#injectlazy-annotation)
* [`@InjectDoctrine`](#injectdoctrine-annotation)
* [`@InjectDoctrineRepository`](#injectdoctrinerepository-annotation)
* [`@InjectIdentity`](#injectidentity-annotation)

#### InjectParams Annotation

Expand Down Expand Up @@ -135,6 +136,9 @@ $object->setRepository($sm->get('Doctrine\ORM\EntityManager')->getRepository('Ap

```

#### InjectIdentity annotation
This annotation injects ZF2's identity. This is simply an alias for `$serviceManager->get('Zend\Authentication\AuthenticationService')->getIdentity()`.

## Custom annotations

You can write custom `@Inject(type)` annotations in couple easy steps:
Expand Down

0 comments on commit 1c6261b

Please sign in to comment.