protected function createTag($path) { $parts = explode('.', $path); $extension = end($parts); $path = $this->generator->toAsset($path); return $this->{'create' . ucfirst($extension) . 'Tag'}($path); }
/** * Create a redirect response. * * @param string $route * @param array $parameters * @return \FluxBB\Web\RedirectResponse */ protected function redirectTo($route, array $parameters = []) { $url = $this->url->toRoute($route, $parameters); return $this->makeRedirect($url); }