Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an inaccuracy within the documentation: the trailing namespace …

…separator is required for annotation namespaces.
  • Loading branch information...
commit f6e3d6e44fff09825f2f54d0932291b871bdf183 1 parent ef9eb13
Josiah Josiah authored beberlei committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 reference/en/annotations.txt
4 reference/en/annotations.txt
View
@@ -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`:
[php]
- $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:
[php]
- $reader->setAnnotationNamespaceAlias('MyCompany\Annotations', 'my');
+ $reader->setAnnotationNamespaceAlias('MyCompany\Annotations\\', 'my');
So now you could do something like this:
Please sign in to comment.
Something went wrong with that request. Please try again.