mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #654 from silverstripe-rebelalliance/fts-changes
BUG Make RequestProcessor->filters settable as a property too
This commit is contained in:
commit
2664cb2d67
@ -14,6 +14,10 @@ class RequestProcessor {
|
||||
$this->filters = $filters;
|
||||
}
|
||||
|
||||
public function setFilters($filters) {
|
||||
$this->filters = $filters;
|
||||
}
|
||||
|
||||
public function preRequest(SS_HTTPRequest $request, Session $session, DataModel $model) {
|
||||
foreach ($this->filters as $filter) {
|
||||
$res = $filter->preRequest($request, $session, $model);
|
||||
|
Loading…
Reference in New Issue
Block a user