Skip to content

Issue #3227108 by chmez: Use Auth service in route subscriber service

Problem

It is not possible in this case because the constructor of the Auth service tries to use the settings form route when it is not created yet.

Solution

Create a separate method for getting redirection URL.

Issue tracker

How to test

  • Create a new module.
  • Add route subscriber service to the created module.
  • Add the Auth service as injected service.
  • When you try to enable the module then you should see the following error:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "zoho_crm_integration.settings" does not exist. in /var/www/html/core/lib/Drupal/Core/Routing/RouteProvider.php:208

Edited by Oleksandr Horbatiuk

Merge request reports

Loading