Skip to content

Commit 8e548b0

Browse files
committed
refactor: remove RouteCollection::getFilterForRoute()
1 parent 4d29e23 commit 8e548b0

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎system/Router/RouteCollection.php‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,25 +1228,6 @@ public function isFiltered(string $search, ?string $verb = null): bool
12281228
return isset($options[$search]['filter']);
12291229
}
12301230

1231-
/**
1232-
* Returns the filter that should be applied for a single route, along
1233-
* with any parameters it might have. Parameters are found by splitting
1234-
* the parameter name on a colon to separate the filter name from the parameter list,
1235-
* and the splitting the result on commas. So:
1236-
*
1237-
* 'role:admin,manager'
1238-
*
1239-
* has a filter of "role", with parameters of ['admin', 'manager'].
1240-
*
1241-
* @deprecated Use getFiltersForRoute()
1242-
*/
1243-
public function getFilterForRoute(string $search, ?string $verb = null): string
1244-
{
1245-
$options = $this->loadRoutesOptions($verb);
1246-
1247-
return $options[$search]['filter'] ?? '';
1248-
}
1249-
12501231
/**
12511232
* Returns the filters that should be applied for a single route, along
12521233
* with any parameters it might have. Parameters are found by splitting

0 commit comments

Comments
 (0)