forked from GNUsocial/gnu-social
[EVENT][ROUTES] Add event to allow modules to add routes, 'add_route'
This commit is contained in:
parent
152828ed68
commit
62e093c650
@ -34,6 +34,7 @@
|
||||
|
||||
namespace App\Core\Router;
|
||||
|
||||
use App\Core\Event;
|
||||
use Symfony\Component\Config\Loader\Loader;
|
||||
use Symfony\Component\Routing\Route;
|
||||
use Symfony\Component\Routing\RouteCollection;
|
||||
@ -61,6 +62,8 @@ class RouteLoader extends Loader
|
||||
$ns::load($this);
|
||||
}
|
||||
|
||||
Event::handle('add_route', [&$this]);
|
||||
|
||||
return $this->rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user