RouteSubscriber.php in OpenID Connect / OAuth client 2.x
File
src/Routing/RouteSubscriber.php
View source
<?php
namespace Drupal\openid_connect\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
class RouteSubscriber extends RouteSubscriberBase {
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('user.logout')) {
$route
->setDefault('_controller', '\\Drupal\\openid_connect\\Controller\\OpenIDConnectRedirectController::redirectLogout');
}
}
}