What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

is there some special routing rules added somewhere in Zed in latest `suite` ? I have a controller

UK5DS29L2
UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet
edited March 2020 in Help

is there some special routing rules added somewhere in Zed in latest suite ? I have a controller at
\Spryker\Zed\VsBridge\Communication\Controller\AuthController::adminAction which worked before the update but now fails with

Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "POST /vs-bridge/auth/admin" in file /data/shop/development/current/vendor/symfony/http-kernel/EventListener/RouterListener.php on line 136

Caused by
Symfony\Component\Routing\Exception\ResourceNotFoundException: None of the routers in the chain matched this request
(...)
n file /data/shop/development/current/vendor/symfony-cmf/routing/src/ChainRouter.php on line 210
Stack trace:
  1. Symfony\Component\HttpKernel\Exception\NotFoundHttpException->() /data/shop/development/current/vendor/symfony/http-kernel/EventListener/RouterListener.php:136
  2. Symfony\Component\Routing\Exception\ResourceNotFoundException->() /data/shop/development/current/vendor/symfony-cmf/routing/src/ChainRouter.php:210
  3. Symfony\Cmf\Component\Routing\ChainRouter->doMatch() /data/shop/development/current/vendor/symfony-cmf/routing/src/ChainRouter.php:158
  4. Symfony\Cmf\Component\Routing\ChainRouter->matchRequest() /data/shop/development/current/vendor/symfony/http-kernel/EventListener/RouterListener.php:112
  5. Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() /data/shop/development/current/vendor/symfony/event-dispatcher/EventDispatcher.php:264
  6. Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() /data/shop/development/current/vendor/symfony/event-dispatcher/EventDispatcher.php:239
  7. Symfony\Component\EventDispatcher\EventDispatcher->callListeners() /data/shop/development/current/vendor/symfony/event-dispatcher/EventDispatcher.php:73
  8. Symfony\Component\EventDispatcher\EventDispatcher->dispatch() /data/shop/development/current/vendor/symfony/http-kernel/HttpKernel.php:122
  9. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /data/shop/development/current/vendor/symfony/http-kernel/HttpKernel.php:68
 10. Symfony\Component\HttpKernel\HttpKernel->handle() /data/shop/development/current/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:122
 11. Spryker\Shared\Application\Application->handle() /data/shop/development/current/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:103
 12. Spryker\Shared\Application\Application->run() /data/shop/development/current/public/Zed/index.php:22

nothing helpful at https://documentation.spryker.com/docs/zed-controllers-actions, though

Comments

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

    So if you are using new router, all namespaces that router search for controller placed in the

    Spryker\Zed\Router\RouterConfig::getControllerDirectories()
    

    method.

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet

    Do you have β€˜Spryker’ as a project level namespace?

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2020

    or this controller is not on the project level?

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    it's in vendor package, but still has spryker namespace, one of the things on my TODO πŸ˜‰

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2020

    So my guess is to check that method that I sent you and extend it in order to look into your directory

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    yes, that was it, thank you so much! πŸ™‡

  • UK5DS29L2
    UK5DS29L2 Posts: 546 πŸ§‘πŸ»β€πŸš€ - Cadet

    is there any doc on this Router ?

  • Serhii Chepela
    Serhii Chepela Application Architect @ Spryker Sprykee Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet