CallableDispatcher.php
TLDR
This file is part of the Illuminate\Routing\Contracts namespace and defines the CallableDispatcher
interface. It contains a single method dispatch
which is responsible for dispatching a request to a given callable.
Methods
dispatch
This method is responsible for dispatching a request to a given callable.
-
Parameters:
-
$route
: An instance of theRoute
class representing the current route. -
$callable
: The callable to be dispatched.
-
-
Return value: The result returned by the callable.
<?php
namespace Illuminate\Routing\Contracts;
use Illuminate\Routing\Route;
interface CallableDispatcher
{
/**
* Dispatch a request to a given callable.
*
* @param \Illuminate\Routing\Route $route
* @param callable $callable
* @return mixed
*/
public function dispatch(Route $route, $callable);
}