Permalink
Browse files

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

BUG Make RequestProcessor->filters settable as a property too
  • Loading branch information...
2 parents 5fa18e9 + 35cc658 commit 2664cb2d6744e2914a679ac2033560f715bac142 Hamish Friedlander committed Jul 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 control/RequestProcessor.php
@@ -14,6 +14,10 @@ public function __construct($filters = array()) {
$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);

0 comments on commit 2664cb2

Please sign in to comment.