src/ItemCollectors/RouteCollector.php
public function all(string $path, callable $action, string $name = null): HttpRoute
    {
        return $this->handle($path, $action, ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'], $name);
    }
public function all(string $path, callable $action, string $name = null): HttpRoute
    {
        return $this->handle($path, $action, ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'], $name);
    }
public function all ( string $ path , callable $ action , string $ name = null ) : HttpRoute { return $ this -> handle ( $ path , $ action , [ 'GET' , 'POST' , 'PUT' , 'PATCH' , 'DELETE' ] , $ name ) ; }
Defines a new route that will intercept all HTTP requests

@param   string $path The path to match
@param   callable $action An action that will be executed
@param   string $name (optional) Route name

@return  HttpRoute
Defines a new route that will intercept all HTTP requests