Файловый менеджер - Редактировать - /home/autoovt/www/ControllerDispatcher.php.tar
Назад
home/autoovt/www/vendor-old/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php 0000666 00000005163 14772201457 0026723 0 ustar 00 <?php namespace Illuminate\Routing; use Illuminate\Container\Container; use Illuminate\Routing\Contracts\ControllerDispatcher as ControllerDispatcherContract; class ControllerDispatcher implements ControllerDispatcherContract { use RouteDependencyResolverTrait; /** * The container instance. * * @var \Illuminate\Container\Container */ protected $container; /** * Create a new controller dispatcher instance. * * @param \Illuminate\Container\Container $container * @return void */ public function __construct(Container $container) { $this->container = $container; } /** * Dispatch a request to a given controller and method. * * @param \Illuminate\Routing\Route $route * @param mixed $controller * @param string $method * @return mixed */ public function dispatch(Route $route, $controller, $method) { $parameters = $this->resolveParameters($route, $controller, $method); if (method_exists($controller, 'callAction')) { return $controller->callAction($method, $parameters); } return $controller->{$method}(...array_values($parameters)); } /** * Resolve the parameters for the controller. * * @param \Illuminate\Routing\Route $route * @param mixed $controller * @param string $method * @return array */ protected function resolveParameters(Route $route, $controller, $method) { return $this->resolveClassMethodDependencies( $route->parametersWithoutNulls(), $controller, $method ); } /** * Get the middleware for the controller instance. * * @param \Illuminate\Routing\Controller $controller * @param string $method * @return array */ public function getMiddleware($controller, $method) { if (! method_exists($controller, 'getMiddleware')) { return []; } return collect($controller->getMiddleware())->reject(function ($data) use ($method) { return static::methodExcludedByOptions($method, $data['options']); })->pluck('middleware')->all(); } /** * Determine if the given options exclude a particular method. * * @param string $method * @param array $options * @return bool */ public static function methodExcludedByOptions($method, array $options) { return (isset($options['only']) && ! in_array($method, (array) $options['only'])) || (! empty($options['except']) && in_array($method, (array) $options['except'])); } } autoovt/www/vendor-old/laravel/framework/src/Illuminate/Routing/Contracts/ControllerDispatcher.php 0000666 00000001205 14772534567 0030610 0 ustar 00 home <?php namespace Illuminate\Routing\Contracts; use Illuminate\Routing\Route; interface ControllerDispatcher { /** * Dispatch a request to a given controller and method. * * @param \Illuminate\Routing\Route $route * @param mixed $controller * @param string $method * @return mixed */ public function dispatch(Route $route, $controller, $method); /** * Get the middleware for the controller instance. * * @param \Illuminate\Routing\Controller $controller * @param string $method * @return array */ public function getMiddleware($controller, $method); }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка