Skip to content

Commit c5e9eb4

Browse files
committed
add accessors.
1 parent a002555 commit c5e9eb4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Illuminate/Routing/Router.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,26 @@ public function setCurrentRoute(Route $route)
12161216
$this->currentRoute = $route;
12171217
}
12181218

1219+
/**
1220+
* Get the filters defined on the router.
1221+
*
1222+
* @return array
1223+
*/
1224+
public function getFilters()
1225+
{
1226+
return $this->filters;
1227+
}
1228+
1229+
/**
1230+
* Get the global filters defined on the router.
1231+
*
1232+
* @return array
1233+
*/
1234+
public function getGlobalFilters()
1235+
{
1236+
return $this->globalFilters;
1237+
}
1238+
12191239
/**
12201240
* Create a new URL matcher instance.
12211241
*

0 commit comments

Comments
 (0)