Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

BUG Make RequestProcessor->filters settable as a property too
  • Loading branch information...
commit 2664cb2d6744e2914a679ac2033560f715bac142 2 parents 5fa18e9 + 35cc658
@hafriedlander hafriedlander authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 control/RequestProcessor.php
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.