Skip to content

Commit

Permalink
Fixes events name to Illuminate\Routing\Events\RouteMatched.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Feb 20, 2016
1 parent b623ff9 commit 696819f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RouteManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Closure;
use Illuminate\Support\Arr;
use Illuminate\Routing\Events\RouteMatched;
use Illuminate\Support\NamespacedItemResolver;
use Illuminate\Contracts\Foundation\Application;
use Orchestra\Contracts\Http\RouteManager as RouteManagerContract;
Expand Down Expand Up @@ -194,7 +195,7 @@ public function route($name, $default = '/')
*/
public function when($path, $listener)
{
return $this->whenOn($path, 'router.matched', $listener);
return $this->whenOn($path, RouteMatched::class, $listener);
}

/**
Expand Down

0 comments on commit 696819f

Please sign in to comment.