public function canRespondWith(Response $response) { // TODO: Cache in production mode return Application::active()->findView($this->getTemplateFor($response)); }
/** * Initialize the helper class by registering * the application's views directory as a path. * * @param AbstractView */ public static function init(AbstractView $view = null) { self::setPathFinder(Application::active()->viewPathFinder()); }