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

Duplicate route DuplicateRouteException #2

Open
majid-rafei opened this issue Nov 14, 2021 · 2 comments
Open

Duplicate route DuplicateRouteException #2

majid-rafei opened this issue Nov 14, 2021 · 2 comments

Comments

@majid-rafei
Copy link
Owner

In case:

Fatal error:
Uncaught Mezzio\Router\Exception\DuplicateRouteException: Duplicate route detected; path "/oauth"
answering to methods [GET,POST], with name "oauth" in
/var/www/mezzio/vendor/laminas/laminas-servicemanager/src/ServiceManager.php 
@majid-rafei
Copy link
Owner Author

Refer to duplicate route, please check if ApplicationConfigInjectionDelegator is used anywhere in your config provider files. Something like below:

'delegators' => [
    \Mezzio\Application::class => [
        \Mezzio\Container\ApplicationConfigInjectionDelegator::class,
    ]
],

@majid-rafei
Copy link
Owner Author

Please aware that config below is set in dependencies.global.php file in dependencies key:

'delegators' => [
    \Mezzio\Application::class => [
        \Mezzio\Container\ApplicationConfigInjectionDelegator::class,
    ]
],

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

No branches or pull requests

1 participant