Merge pull request #654 from silverstripe-rebelalliance/fts-changes

BUG Make RequestProcessor->filters settable as a property too
This commit is contained in:
Hamish Friedlander 2012-07-22 15:19:01 -07:00
commit 2664cb2d67

View File

@ -14,6 +14,10 @@ class RequestProcessor {
$this->filters = $filters; $this->filters = $filters;
} }
public function setFilters($filters) {
$this->filters = $filters;
}
public function preRequest(SS_HTTPRequest $request, Session $session, DataModel $model) { public function preRequest(SS_HTTPRequest $request, Session $session, DataModel $model) {
foreach ($this->filters as $filter) { foreach ($this->filters as $filter) {
$res = $filter->preRequest($request, $session, $model); $res = $filter->preRequest($request, $session, $model);