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

Route not indexed if the annotation is empty #1029

Closed
soullivaneuh opened this issue Sep 23, 2017 · 1 comment
Closed

Route not indexed if the annotation is empty #1029

soullivaneuh opened this issue Sep 23, 2017 · 1 comment
Labels

Comments

@soullivaneuh
Copy link

soullivaneuh commented Sep 23, 2017

With the following class:

/**
 * @Route("/repositories")
 */
final class RepositoryController extends Controller
{
    /**
     * @Route
     * @Security("is_granted('ROLE_USER')")
     */
    public function indexAction()
    {
        // ...
    }
}

The app_repository_index route is not found by the plugin (no completion and warning for missing route).

But the route does exist for Symfony:

  app_repository_index             ANY      ANY      ANY    /repositories                      

You have to specify @Route without any parenthesis to reproduce the issue.

@Haehnchen Haehnchen added the todo label Oct 10, 2017
Haehnchen added a commit that referenced this issue May 9, 2022
#1029 fix route not indexed if the annotation is empty
@Haehnchen
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants