Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No need to register annotation namespace? #21

Open
gfreeau opened this issue May 18, 2014 · 0 comments
Open

No need to register annotation namespace? #21

gfreeau opened this issue May 18, 2014 · 0 comments
Labels
Documentation This issue or pull request is related to documentation and written guidelines
Milestone

Comments

@gfreeau
Copy link

gfreeau commented May 18, 2014

I believe this is not needed in the bundle extension:

AnnotationRegistry::registerAutoloadNamespace('DMS\Bundle\FilterBundle\Rule', __DIR__ . '/../../../');

as long as you register the annotations loader in app/autoload.php

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

This allows for other symfony annotations as well:

http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html

@rdohms rdohms added the Documentation This issue or pull request is related to documentation and written guidelines label Jul 24, 2021
@rdohms rdohms modified the milestones: v5.0, v5.1 Jul 24, 2021
@rdohms rdohms modified the milestones: v5.1, v5.2.0 Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation This issue or pull request is related to documentation and written guidelines
Projects
None yet
Development

No branches or pull requests

2 participants