PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Routing
<?php namespace Illuminate\Routing; use Illuminate\Container\Container; use Illuminate\Routing\Contracts\CallableDispatcher as CallableDispatcherContract; use ReflectionFunction; class CallableDispatcher implements CallableDispatcherContract { use RouteDependencyResolverTrait; /** * The container instance. * * @var \Illuminate\Container\Container */ protected $container; /** * Create a new callable dispatcher instance. * * @param \Illuminate\Container\Container $container * @return void */ public function __construct(Container $container) { $this->container = $container; } /** * Dispatch a request to a given callable. * * @param \Illuminate\Routing\Route $route * @param callable $callable * @return mixed */ public function dispatch(Route $route, $callable) { return $callable(...array_values($this->resolveParameters($route, $callable))); } /** * Resolve the parameters for the callable. * * @param \Illuminate\Routing\Route $route * @param callable $callable * @return array */ protected function resolveParameters(Route $route, $callable) { return $this->resolveMethodDependencies($route->parametersWithoutNulls(), new ReflectionFunction($callable)); } }
[+]
Exceptions
[-] ControllerDispatcher.php
[edit]
[-] RouteParameterBinder.php
[edit]
[-] composer.json
[edit]
[-] CompiledRouteCollection.php
[edit]
[-] ImplicitRouteBinding.php
[edit]
[-] RouteUri.php
[edit]
[-] RouteGroup.php
[edit]
[-] PendingResourceRegistration.php
[edit]
[+]
..
[-] Redirector.php
[edit]
[-] MiddlewareNameResolver.php
[edit]
[-] ViewController.php
[edit]
[-] Route.php
[edit]
[+]
Controllers
[-] Pipeline.php
[edit]
[+]
Matching
[-] RouteSignatureParameters.php
[edit]
[-] RouteDependencyResolverTrait.php
[edit]
[-] CreatesRegularExpressionRouteConstraints.php
[edit]
[+]
Events
[-] ResourceRegistrar.php
[edit]
[-] RouteFileRegistrar.php
[edit]
[+]
Middleware
[-] Controller.php
[edit]
[-] RouteRegistrar.php
[edit]
[-] RouteUrlGenerator.php
[edit]
[-] LICENSE.md
[edit]
[+]
Contracts
[+]
Console
[-] ResponseFactory.php
[edit]
[-] SortedMiddleware.php
[edit]
[-] RoutingServiceProvider.php
[edit]
[-] CallableDispatcher.php
[edit]
[-] UrlGenerator.php
[edit]
[-] AbstractRouteCollection.php
[edit]
[-] RouteBinding.php
[edit]
[-] RouteCollectionInterface.php
[edit]
[-] RedirectController.php
[edit]
[-] RouteCollection.php
[edit]
[-] RouteAction.php
[edit]
[-] Router.php
[edit]
[-] PendingSingletonResourceRegistration.php
[edit]
[-] ControllerMiddlewareOptions.php
[edit]