Browse files

Fixed an inaccuracy within the documentation: the trailing namespace …

…separator is required for annotation namespaces.
  • Loading branch information...
1 parent ef9eb13 commit f6e3d6e44fff09825f2f54d0932291b871bdf183 @Josiah Josiah committed with beberlei Jan 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 reference/en/annotations.txt
4 reference/en/annotations.txt
@@ -50,7 +50,7 @@ is an example where we specify the fully qualified class name for the annotation
To shorten the above code you can configure the default namespace to be `MyCompany\Annotations`:
- $reader->setDefaultAnnotationNamespace('MyCompany\Annotations');
+ $reader->setDefaultAnnotationNamespace('MyCompany\Annotations\\');
Now it can look something like:
@@ -68,7 +68,7 @@ Again to save you from having to specify the fully qualified class name you can
for a namespace of annotation classes:
- $reader->setAnnotationNamespaceAlias('MyCompany\Annotations', 'my');
+ $reader->setAnnotationNamespaceAlias('MyCompany\Annotations\\', 'my');
So now you could do something like this:

0 comments on commit f6e3d6e

Please sign in to comment.