File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Routing
Upload
[..]
Attributes/
Rename
Del
CallableDispatcher.php (1.32 KB)
Edit
Rename
Del
Console/
Rename
Del
Contracts/
Rename
Del
ControllerDispatcher.php (2.22 KB)
Edit
Rename
Del
Controllers/
Rename
Del
Events/
Rename
Del
Exceptions/
Rename
Del
FiltersControllerMiddleware.php (524 B)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
Matching/
Rename
Del
Middleware/
Rename
Del
PendingResourceRegistration.php (7.51 KB)
Edit
Rename
Del
PendingSingletonResourceRegistration.php (6.78 KB)
Edit
Rename
Del
Pipeline.php (1.49 KB)
Edit
Rename
Del
RedirectController.php (1.22 KB)
Edit
Rename
Del
Redirector.php (7.17 KB)
Edit
Rename
Del
ResolvesRouteDependencies.php (3.82 KB)
Edit
Rename
Del
ResourceRegistrar.php (21.7 KB)
Edit
Rename
Del
ResponseFactory.php (11.41 KB)
Edit
Rename
Del
RouteAction.php (3.38 KB)
Edit
Rename
Del
RouteCollection.php (8.52 KB)
Edit
Rename
Del
RouteDependencyResolverTrait.php (135 B)
Edit
Rename
Del
RouteParameterBinder.php (3.02 KB)
Edit
Rename
Del
RouteRegistrar.php (9.25 KB)
Edit
Rename
Del
RouteUri.php (1.27 KB)
Edit
Rename
Del
RouteUrlGenerator.php (14.61 KB)
Edit
Rename
Del
RoutingServiceProvider.php (6.69 KB)
Edit
Rename
Del
SortedMiddleware.php (3.74 KB)
Edit
Rename
Del
composer.json (1.67 KB)
Edit
Rename
Del
Edit: CallableDispatcher.php
<?php namespace Illuminate\Routing; use Illuminate\Container\Container; use Illuminate\Routing\Contracts\CallableDispatcher as CallableDispatcherContract; use ReflectionFunction; class CallableDispatcher implements CallableDispatcherContract { use ResolvesRouteDependencies; /** * The container instance. * * @var \Illuminate\Container\Container */ protected $container; /** * Create a new callable dispatcher instance. * * @param \Illuminate\Container\Container $container */ 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)); } }
Simpan