mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #2216 from acasar/patch-1
Pass the router reference on beforeRoute event
This commit is contained in:
commit
346dc91d72
@ -80,7 +80,7 @@ class Router
|
||||
$this->url = $url;
|
||||
$url = RouterHelper::normalizeUrl($url);
|
||||
|
||||
$apiResult = Event::fire('cms.router.beforeRoute', [$url], true);
|
||||
$apiResult = Event::fire('cms.router.beforeRoute', [$url, $this], true);
|
||||
if ($apiResult !== null) {
|
||||
return $apiResult;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user