Skip to content

Commit

Permalink
Revert adding head method to router (#30710)
Browse files Browse the repository at this point in the history
This reverts #30646 because it's incomplete and currently breaks the route:list command.

Closes #30708
  • Loading branch information
driesvints authored and taylorotwell committed Nov 29, 2019
1 parent 663a30f commit 87bde76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/Illuminate/Routing/Router.php
Expand Up @@ -132,18 +132,6 @@ public function __construct(Dispatcher $events, Container $container = null)
$this->container = $container ?: new Container;
}

/**
* Register a new HEAD route with the router.
*
* @param string $uri
* @param \Closure|array|string|callable|null $action
* @return \Illuminate\Routing\Route
*/
public function head($uri, $action = null)
{
return $this->addRoute('HEAD', $uri, $action);
}

/**
* Register a new GET route with the router.
*
Expand Down
1 change: 0 additions & 1 deletion src/Illuminate/Support/Facades/Route.php
Expand Up @@ -5,7 +5,6 @@
/**
* @method static \Illuminate\Routing\Route fallback(\Closure|array|string|callable|null $action = null)
* @method static \Illuminate\Routing\Route get(string $uri, \Closure|array|string|callable|null $action = null)
* @method static \Illuminate\Routing\Route head(string $uri, \Closure|array|string|callable|null $action = null)
* @method static \Illuminate\Routing\Route post(string $uri, \Closure|array|string|callable|null $action = null)
* @method static \Illuminate\Routing\Route put(string $uri, \Closure|array|string|callable|null $action = null)
* @method static \Illuminate\Routing\Route delete(string $uri, \Closure|array|string|callable|null $action = null)
Expand Down

0 comments on commit 87bde76

Please sign in to comment.