[ROUTER] Add mechanism for sorting the order in which core routes are loaded

This commit is contained in:
2021-09-15 15:13:30 +01:00
committed by Diogo Peralta Cordeiro
parent b26f3bca14
commit e563c393f8
5 changed files with 17 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ use Symfony\Bundle\FrameworkBundle\Controller\RedirectController;
abstract class Main
{
const LOAD_ORDER = 10;
public static function load(RouteLoader $r): void
{
$r->connect('login', '/login', [C\Security::class, 'login']);