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 reference not showing in controller that is in a sub namespace #763

Closed
nexana opened this issue Jul 7, 2016 · 1 comment
Closed
Labels

Comments

@nexana
Copy link

nexana commented Jul 7, 2016

I have a controller in my bundle that is in a sub-namespace of the controllers:

    namespace MyCompany\MyBundle\Controller\Rule;

    class CanApplyRuleController extends AbstractWebController
    {
           public function callAction()
           {
                 //do stuff
           }
    }

and the route mapping in yml:

call_my_action:
    path: /make_call
    defaults: { _controller: MyCompanyMyBundle:Rule/CanApplyRule:call }
  • routing works correctly
  • the plugin shows the correct linking to the method of the route
  • plugin shows the correct reference in controllers that are in the MyCompany\MyBundle\Controller namespace

The problem is that in my controller there is no reference back to the route file. Is the plugin having problems seeing controllers that are in a subbed namespace?

@Haehnchen Haehnchen added the todo label Jul 16, 2016
Haehnchen added a commit that referenced this issue Jul 17, 2016
…ace on slashes #763; refactor and provide test cases for route controller name resolving
@Haehnchen Haehnchen added fixed and removed todo labels Jul 17, 2016
@Haehnchen
Copy link
Owner

Fixed: MyCompanyMyBundle:Rule/CanApplyRule:call vs. MyCompanyMyBundle:Rule\CanApplyRule:call

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