Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Annotation namespaces require a trailing slash #1

wants to merge 1 commit into from

2 participants


The documentation does not reflect this, but annotation namespaces require a trailing slash when used.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 6, 2011
  1. @Josiah

    Fixed an inaccuracy within the documentation: the trailing namespace …

    Josiah authored
    …separator is required for annotation namespaces.
This page is out of date. Refresh to see the latest.
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:
Something went wrong with that request. Please try again.