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…
Reference in New Issue