/home
/www
/apps
/nice-airport-express
/vendor
/graham-campbell
/exceptions
/src
/Transformers
/ModelTransformer.php
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* This is the model transformer class.
*
* @author Graham Campbell <graham@alt-three.com>
*/
class ModelTransformer implements TransformerInterface
{
/**
* Transform the provided exception.
*
* @param \Exception $exception
*
* @return \Exception
*/
public function transform(Exception $exception)
{
if ($exception instanceof ModelNotFoundException) {
$exception = new NotFoundHttpException($exception->getMessage(), $exception, $exception->getCode());
}
return $exception;
}
}
Arguments
"No query results for model [App\Models\Page]."
/home
/www
/apps
/nice-airport-express
/vendor
/graham-campbell
/exceptions
/src
/ExceptionHandlerTrait.php
$id = $this->container->make(ExceptionIdentifier::class)->identify($exception);
$flattened = FlattenException::create($transformed);
$code = $flattened->getStatusCode();
$headers = $flattened->getHeaders();
return $this->getDisplayer($request, $exception, $transformed, $code)->display($transformed, $id, $code, $headers);
}
/**
* Get the transformed exception.
*
* @param \Exception $exception
*
* @return \Exception
*/
protected function getTransformed(Exception $exception)
{
foreach ($this->make(array_get($this->config, 'transformers', [])) as $transformer) {
$exception = $transformer->transform($exception);
}
return $exception;
}
/**
* Get the displayer instance.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $original
* @param \Exception $transformed
* @param int $code
*
* @return \GrahamCampbell\Exceptions\Displayers\DisplayerInterface
*/
protected function getDisplayer(Request $request, Exception $original, Exception $transformed, $code)
{
$displayers = $this->make(array_get($this->config, 'displayers', []));
if ($filtered = $this->getFiltered($displayers, $request, $original, $transformed, $code)) {
Arguments
ModelNotFoundException {#789
#model: "App\Models\Page"
#ids: []
#message: "No query results for model [App\Models\Page]."
#code: 0
#file: "/home/www/apps/nice-airport-express/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php"
#line: 395
}
/home
/www
/apps
/nice-airport-express
/vendor
/graham-campbell
/exceptions
/src
/ExceptionHandlerTrait.php
foreach (array_get($this->config, 'levels', []) as $class => $level) {
if ($exception instanceof $class) {
return $level;
}
}
return 'error';
}
/**
* Render an exception into a response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
*
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
{
$transformed = $this->getTransformed($e);
$response = method_exists($e, 'getResponse') ? $e->getResponse() : null;
if (!$response instanceof Response) {
try {
$response = $this->getResponse($request, $e, $transformed);
} catch (Exception $e) {
$this->report($e);
$response = new Response('Internal server error.', 500, ['Content-Type' => 'text/plain']);
} catch (Throwable $e) {
$this->report($e = new FatalThrowableError($e));
$response = new Response('Internal server error.', 500, ['Content-Type' => 'text/plain']);
}
}
return $this->toIlluminateResponse($response, $transformed);
}
Arguments
ModelNotFoundException {#789
#model: "App\Models\Page"
#ids: []
#message: "No query results for model [App\Models\Page]."
#code: 0
#file: "/home/www/apps/nice-airport-express/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php"
#line: 395
}
/home
/www
/apps
/nice-airport-express
/app
/Exceptions
/Handler.php
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}
/**
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $exception
* @return \Illuminate\Http\Response
*/
protected function unauthenticated($request, AuthenticationException $exception)
{
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);
}
return redirect()->guest(route('login'));
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
ModelNotFoundException {#789
#model: "App\Models\Page"
#ids: []
#message: "No query results for model [App\Models\Page]."
#code: 0
#file: "/home/www/apps/nice-airport-express/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php"
#line: 395
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
if (! $this->container->bound(ExceptionHandler::class) || ! $passable instanceof Request) {
throw $e;
}
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (method_exists($response, 'withException')) {
$response->withException($e);
}
return $response;
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
ModelNotFoundException {#789
#model: "App\Models\Page"
#ids: []
#message: "No query results for model [App\Models\Page]."
#code: 0
#file: "/home/www/apps/nice-airport-express/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php"
#line: 395
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
ModelNotFoundException {#789
#model: "App\Models\Page"
#ids: []
#message: "No query results for model [App\Models\Page]."
#code: 0
#file: "/home/www/apps/nice-airport-express/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php"
#line: 395
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Database
/Eloquent
/Builder.php
return tap($this->firstOrNew($attributes), function ($instance) use ($values) {
$instance->fill($values)->save();
});
}
/**
* Execute the query and get the first result or throw an exception.
*
* @param array $columns
* @return \Illuminate\Database\Eloquent\Model|static
*
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function firstOrFail($columns = ['*'])
{
if (! is_null($model = $this->first($columns))) {
return $model;
}
throw (new ModelNotFoundException)->setModel(get_class($this->model));
}
/**
* Execute the query and get the first result or call a callback.
*
* @param \Closure|array $columns
* @param \Closure|null $callback
* @return \Illuminate\Database\Eloquent\Model|static|mixed
*/
public function firstOr($columns = ['*'], Closure $callback = null)
{
if ($columns instanceof Closure) {
$callback = $columns;
$columns = ['*'];
}
if (! is_null($model = $this->first($columns))) {
return $model;
}
Arguments
"No query results for model [App\Models\Page]."
/home
/www
/apps
/nice-airport-express
/app
/Http
/Controllers
/PageController.php
{
$locale_origine = false;
if (starts_with($slug, 'compte/')) {
$locale_origine = 'fr';
} elseif (starts_with($slug, 'account/')) {
$locale_origine = 'en';
}
if ($locale_origine) {
$locales = __('routes', [], $locale_origine);
$locale = app()->getLocale();
$parts = explode('/', $slug);
$trans = [];
foreach ($parts as $part) {
$val = array_search($part, $locales) ?: null;
$trans[] = $val ? __("routes.{$val}") : $part;
}
return redirect("/{$locale}/" . implode("/", $trans));
}
$page = Page::where('slug', 'LIKE', "%\"$slug\"%")->firstOrFail();
if ($page && $page->slug != $slug && $page->slug != '') {
return redirect()->route('page', ['page' => $page->slug]);
}
if (Auth::check()) {
if (Auth::user()->stepEnCommande > 0) {
return redirect(route('step1'));
}
}
$this->data['informations'] = Information::all();
$this->data['lignes'] = Ligne::all();
$sous_title = json_decode($page->extras); //home
$this->data['title'] = $page->title;
$this->data['sous_title'] = $sous_title;
$this->data['page'] = $page->withFakes();
if ($slug == 'accueil' || $slug == 'home') {
if ($page->type_emplacement_1 == 'inactif' || $page->type_emplacement_2 == 'inactif') {
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Controller.php
/**
* Get the middleware assigned to the controller.
*
* @return array
*/
public function getMiddleware()
{
return $this->middleware;
}
/**
* Execute an action on the controller.
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/**
* Handle calls to missing methods on the controller.
*
* @param array $parameters
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function missingMethod($parameters = [])
{
throw new NotFoundHttpException('Controller method not found.');
}
/**
* Handle calls to missing methods on the controller.
*
* @param string $method
* @param array $parameters
Arguments
"horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Controller.php
/**
* Get the middleware assigned to the controller.
*
* @return array
*/
public function getMiddleware()
{
return $this->middleware;
}
/**
* Execute an action on the controller.
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/**
* Handle calls to missing methods on the controller.
*
* @param array $parameters
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function missingMethod($parameters = [])
{
throw new NotFoundHttpException('Controller method not found.');
}
/**
* Handle calls to missing methods on the controller.
*
* @param string $method
* @param array $parameters
Arguments
array:2 [
0 => PageController {#540}
1 => "index"
]
array:1 [
"page" => "horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
]
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/ControllerDispatcher.php
{
$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->resolveClassMethodDependencies(
$route->parametersWithoutNulls(), $controller, $method
);
if (method_exists($controller, 'callAction')) {
return $controller->callAction($method, $parameters);
}
return $controller->{$method}(...array_values($parameters));
}
/**
* Get the middleware for the controller instance.
*
* @param \Illuminate\Routing\Controller $controller
* @param string $method
* @return array
*/
public static 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']);
Arguments
"index"
array:1 [
"page" => "horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
]
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Route.php
protected function runCallable()
{
$callable = $this->action['uses'];
return $callable(...array_values($this->resolveMethodDependencies(
$this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
)));
}
/**
* Run the route action and return the response.
*
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function runController()
{
return (new ControllerDispatcher($this->container))->dispatch(
$this, $this->getController(), $this->getControllerMethod()
);
}
/**
* Get the controller instance for the route.
*
* @return mixed
*/
public function getController()
{
$class = $this->parseControllerCallback()[0];
if (! $this->controller) {
$this->controller = $this->container->make($class);
}
return $this->controller;
}
/**
Arguments
Route {#477}
PageController {#540}
"index"
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Route.php
*
* @throws \UnexpectedValueException
*/
protected function parseAction($action)
{
return RouteAction::parse($this->uri, $action);
}
/**
* Run the route action and return the response.
*
* @return mixed
*/
public function run()
{
$this->container = $this->container ?: new Container;
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
/**
* Checks whether the route's action is a controller.
*
* @return bool
*/
protected function isControllerAction()
{
return is_string($this->action['uses']);
}
/**
* Run the route action and return the response.
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Router.php
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/mcamara
/laravel-localization
/src
/Mcamara
/LaravelLocalization
/Middleware
/LaravelLocalizationViewPath.php
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next) {
// If the URL of the request is in exceptions.
if ($this->shouldIgnore($request)) {
return $next($request);
}
$app = app();
$currentLocale = app('laravellocalization')->getCurrentLocale();
$viewPath = resource_path('views/' . $currentLocale);
// Add current locale-code to view-paths
View::addLocation($viewPath);
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#731
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#730 …}
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/mcamara
/laravel-localization
/src
/Mcamara
/LaravelLocalization
/Middleware
/LaravelLocalizationRedirectFilter.php
if (!empty($locales[$localeCode])) {
if ($localeCode === $defaultLocale && $hideDefaultLocale) {
$redirection = app('laravellocalization')->getNonLocalizedURL();
}
} elseif ($currentLocale !== $defaultLocale || !$hideDefaultLocale) {
// If the current url does not contain any locale
// The system redirect the user to the very same url "localized"
// we use the current locale to redirect him
$redirection = app('laravellocalization')->getLocalizedURL(session('locale'), $request->fullUrl());
}
if ($redirection) {
// Save any flashed data for redirect
app('session')->reflash();
return new RedirectResponse($redirection, 302, ['Vary' => 'Accept-Language']);
}
}
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#733
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#731 …}
$pipe: "Mcamara\LaravelLocalization\Middleware\LaravelLocalizationViewPath"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/mcamara
/laravel-localization
/src
/Mcamara
/LaravelLocalization
/Middleware
/LocaleSessionRedirect.php
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the URL of the request is in exceptions.
if ($this->shouldIgnore($request)) {
return $next($request);
}
$params = explode('/', $request->path());
$locale = session('locale', false);
if (\count($params) > 0 && app('laravellocalization')->checkLocaleInSupportedLocales($params[0])) {
session(['locale' => $params[0]]);
return $next($request);
}
if ($locale && app('laravellocalization')->checkLocaleInSupportedLocales($locale) && !(app('laravellocalization')->getDefaultLocale() === $locale && app('laravellocalization')->hideDefaultLocaleInURL())) {
app('session')->reflash();
$redirection = app('laravellocalization')->getLocalizedURL($locale);
return new RedirectResponse($redirection, 302, ['Vary' => 'Accept-Language']);
}
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#734
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#733 …}
$pipe: "Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRedirectFilter"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/mcamara
/laravel-localization
/src
/Mcamara
/LaravelLocalization
/Middleware
/LaravelLocalizationRoutes.php
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the URL of the request is in exceptions.
if ($this->shouldIgnore($request)) {
return $next($request);
}
$app = app();
$routeName = $app['laravellocalization']->getRouteNameFromAPath($request->getUri());
$app['laravellocalization']->setRouteName($routeName);
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#735
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#734 …}
$pipe: "Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Middleware
/SubstituteBindings.php
*/
public function __construct(Registrar $router)
{
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#736
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#735 …}
$pipe: "Mcamara\LaravelLocalization\Middleware\LaravelLocalizationRoutes"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Middleware
/VerifyCsrfToken.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function handle($request, Closure $next)
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return $this->addCookieToResponse($request, $next($request));
}
throw new TokenMismatchException;
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function isReading($request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}
/**
* Determine if the application is running unit tests.
*
* @return bool
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#737
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#736 …}
$pipe: "Illuminate\Routing\Middleware\SubstituteBindings"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/View
/Middleware
/ShareErrorsFromSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the current session has an "errors" variable bound to it, we will share
// its value with all view instances so the views can easily access errors
// without having to bind. An empty bag is set when there aren't errors.
$this->view->share(
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#738
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#737 …}
$pipe: "App\Http\Middleware\VerifyCsrfToken"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Session
/Middleware
/StartSession.php
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->sessionHandled = true;
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
if ($this->sessionConfigured()) {
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
}
$response = $next($request);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
/**
* Perform any final actions for the request lifecycle.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#739
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#738 …}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Cookie
/Middleware
/AddQueuedCookiesToResponse.php
* Create a new CookieQueue instance.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies
* @return void
*/
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#740
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#739 …}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Cookie
/Middleware
/EncryptCookies.php
* Disable encryption for the given cookie name(s).
*
* @param string|array $cookieName
* @return void
*/
public function disableFor($cookieName)
{
$this->except = array_merge($this->except, (array) $cookieName);
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Request
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $c) {
if ($this->isDisabled($key)) {
continue;
}
try {
$request->cookies->set($key, $this->decryptCookie($c));
} catch (DecryptException $e) {
$request->cookies->set($key, null);
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#741
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#539 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#740 …}
$pipe: "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Router.php
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*
Arguments
Closure {#730
class: "Illuminate\Routing\Router"
this: Router {#21 …}
parameters: {
$request: {}
}
use: {
$route: Route {#477 …}
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Router.php
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function dispatchToRoute(Request $request)
{
// First we will find a route that matches this request. We will also set the
// route resolver on the request so middlewares assigned to the route will
// receive access to this route instance for checking of the parameters.
$route = $this->findRoute($request);
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
$response = $this->runRouteWithinStack($route, $request);
return $this->prepareResponse($request, $response);
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance(Route::class, $route);
return $route;
}
/**
Arguments
Route {#477}
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Router.php
*
* @param \Illuminate\Routing\Route $route
* @return void
*/
protected function mergeGroupAttributesIntoRoute($route)
{
$route->setAction($this->mergeWithLastGroup($route->getAction()));
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function dispatchToRoute(Request $request)
{
// First we will find a route that matches this request. We will also set the
// route resolver on the request so middlewares assigned to the route will
// receive access to this route instance for checking of the parameters.
$route = $this->findRoute($request);
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Kernel.php
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Middleware
/TransformsRequest.php
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} else {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#516
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#35 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#37 …}
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Middleware
/TransformsRequest.php
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} else {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#517
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#35 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#516 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Middleware
/ValidatePostSize.php
class ValidatePostSize
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Http\Exceptions\PostTooLargeException
*/
public function handle($request, Closure $next)
{
$max = $this->getPostMaxSize();
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
return $next($request);
}
/**
* Determine the server 'post_max_size' as bytes.
*
* @return int
*/
protected function getPostMaxSize()
{
if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
return (int) $postMaxSize;
}
$metric = strtoupper(substr($postMaxSize, -1));
switch ($metric) {
case 'K':
return (int) $postMaxSize * 1024;
case 'M':
return (int) $postMaxSize * 1048576;
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#518
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#35 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#517 …}
$pipe: "App\Http\Middleware\TrimStrings"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Middleware
/CheckForMaintenanceMode.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#519
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#35 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#518 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ValidatePostSize"
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Routing
/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Pipeline
/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Kernel.php
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
Arguments
Closure {#37
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#22 …}
parameters: {
$request: {}
}
}
/home
/www
/apps
/nice-airport-express
/vendor
/laravel
/framework
/src
/Illuminate
/Foundation
/Http
/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new Events\RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/home
/www
/apps
/nice-airport-express
/public
/index.php
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Arguments
Request {#38
#json: null
#convertedFiles: null
#userResolver: Closure {#533
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#30 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#3 …}
}
}
#routeResolver: Closure {#534
class: "Illuminate\Routing\Router"
this: Router {#21 …}
use: {
$route: Route {#477 …}
}
}
+attributes: ParameterBag {#40}
+request: ParameterBag {#46}
+query: ParameterBag {#46}
+server: ServerBag {#42}
+files: FileBag {#43}
+cookies: ParameterBag {#41}
+headers: HeaderBag {#44}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#requestUri: "/fr/horaires.html&caid=88c9fa3fe1d45256fa6514834cda55ad"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#753}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}