+ $this->addFilter('post', $filterInstance);
+ }
+
+ /**
+ * Executes given filter chain group
+ *
+ * @param $filterGroup Group of the filter to execute
+ * @param $requestInstance An instance of a request class
+ * @param $responseInstance An instance of a response class
+ * @return void
+ * @throws InvalidFilterChainException If the filter chain is invalid
+ */
+ protected function executeFilters ($filterGroup, Requestable $requestInstance, Responseable $responseInstance) {
+ // Test if the filter is there
+ if (!isset($this->filterChains[$filterGroup])) {
+ // Throw an exception here
+ throw new InvalidFilterChainException(array($this, $filterGroup), self::EXCEPTION_FILTER_CHAIN_INVALID);
+ } // END - if
+
+ // Run all filters
+ $this->filterChains[$filterGroup]->processFilters($requestInstance, $responseInstance);