Ejemplo n.º 1
0
 protected function createTag($path)
 {
     $parts = explode('.', $path);
     $extension = end($parts);
     $path = $this->generator->toAsset($path);
     return $this->{'create' . ucfirst($extension) . 'Tag'}($path);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }