public function __construct($router = null) { $this->_filterChain = new RequestFilterChain(); $this->_router = isset($params['router']) ? $params['router'] : new Router(); }