Skip to content

Instantly share code, notes, and snippets.

@barraponto
Created May 23, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barraponto/3afd7b35df5118528319fb9a2819d7f9 to your computer and use it in GitHub Desktop.
Save barraponto/3afd7b35df5118528319fb9a2819d7f9 to your computer and use it in GitHub Desktop.
<?php
namespace Drupal\mail_login_rpc\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Swaps default rpc login controller with ours.
*/
class RouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection->get('user.login.http')) {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment