/var/www/eslab.pl/vendor/illuminate/view/FileViewFinder.php
/**
* Find the given view in the list of paths.
*
* @param string $name
* @param array $paths
* @return string
*
* @throws \InvalidArgumentException
*/
protected function findInPaths($name, $paths)
{
foreach ((array) $paths as $path) {
foreach ($this->getPossibleViewFiles($name) as $file) {
if ($this->files->exists($viewPath = $path.'/'.$file)) {
return $viewPath;
}
}
}
throw new InvalidArgumentException("View [{$name}] not found.");
}
/**
* Get an array of possible view files.
*
* @param string $name
* @return array
*/
protected function getPossibleViewFiles($name)
{
return array_map(function ($extension) use ($name) {
return str_replace('.', '/', $name).'.'.$extension;
}, $this->extensions);
}
/**
* Add a location to the finder.
*
* @param string $location
* @return void
Arguments
"View [pages.error404] not found."
/var/www/eslab.pl/vendor/themosis/framework/src/View/FileViewFinder.php
}
/**
* Get the fully qualified location of the view.
*
* @param string $name
*
* @return string
*/
public function find($name)
{
if (isset($this->views[$name])) {
return $this->views[$name];
}
if ($this->hasHintInformation($name = trim($name))) {
return $this->views[$name] = $this->findNamespacedView($name);
}
return $this->views[$name] = $this->findInPaths($name, $this->getPaths());
}
/**
* Parse ordered path locations and prepend
* them to default paths.
*/
private function parseOrderedPaths()
{
if (empty($this->orderedPaths)) {
return;
}
/**
* @var FileViewLocation[]
*/
$orderedPaths = $this->orderedPaths;
uasort($orderedPaths, function ($a, $b) {
return $a->getPriority() < $b->getPriority();
});
Arguments
"pages.error404"
array:4 [
0 => "/var/www/eslab.pl/htdocs/content/themes/eslab/views"
1 => "/var/www/eslab.pl/resources/views"
2 => "/var/www/eslab.pl/vendor/themosis/framework/src/Forms/views"
3 => "/var/www/eslab.pl/vendor/themosis/framework/src/PostType/views"
]
/var/www/eslab.pl/vendor/illuminate/view/Factory.php
{
$data = array_merge($mergeData, $this->parseData($data));
return tap($this->viewInstance($path, $path, $data), function ($view) {
$this->callCreator($view);
});
}
/**
* Get the evaluated view contents for the given view.
*
* @param string $view
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
* @return \Illuminate\Contracts\View\View
*/
public function make($view, $data = [], $mergeData = [])
{
$path = $this->finder->find(
$view = $this->normalizeName($view)
);
// Next, we will create the view instance and call the view creator for the view
// which can set any data, etc. Then we will return the view instance back to
// the caller for rendering or performing other view manipulations on this.
$data = array_merge($mergeData, $this->parseData($data));
return tap($this->viewInstance($view, $path, $data), function ($view) {
$this->callCreator($view);
});
}
/**
* Get the first view that actually exists from the given list.
*
* @param array $views
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
* @return \Illuminate\Contracts\View\View
*
Arguments
/var/www/eslab.pl/vendor/themosis/framework/src/Core/helpers.php
if (! function_exists('view')) {
/**
* Get the evaluated view contents for the given view.
*
* @param string $view
* @param array $data
* @param array $mergeData
*
* @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory|\Illuminate\View\Factory
*/
function view($view = null, $data = [], $mergeData = [])
{
$factory = app(ViewFactory::class);
if (func_num_args() === 0) {
return $factory;
}
return $factory->make($view, $data, $mergeData);
}
}
if (! function_exists('web_path')) {
/**
* Get the public web path.
*
* @param string $path
*
* @return string
*/
function web_path($path = '')
{
return app()->webPath($path);
}
}
Arguments
/var/www/eslab.pl/app/Http/Controllers/PagesController.php
/**
* Show the page.
*/
public function view($page)
{
$data['page'] = $page;
//dd($data);
return view('pages.view', $data);
}
/**
* Show the 404 page.
*/
public function error404()
{
return view('pages.error404');
}
}
Arguments
/var/www/eslab.pl/vendor/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 string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
throw new BadMethodCallException(sprintf(
'Method %s::%s does not exist.', static::class, $method
));
}
}
Arguments
/var/www/eslab.pl/vendor/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 string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
throw new BadMethodCallException(sprintf(
'Method %s::%s does not exist.', static::class, $method
));
}
}
Arguments
array:2 [
0 => App\Http\Controllers\PagesController {#1881}
1 => "error404"
]
array:2 [
"post" => WP_Post {#1868}
"wp_query" => WP_Query {#1401}
]
/var/www/eslab.pl/vendor/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 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
"error404"
array:2 [
"post" => WP_Post {#1868}
"wp_query" => WP_Query {#1401}
]
/var/www/eslab.pl/vendor/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 $this->controllerDispatcher()->dispatch(
$this, $this->getController(), $this->getControllerMethod()
);
}
/**
* Get the controller instance for the route.
*
* @return mixed
*/
public function getController()
{
if (! $this->controller) {
$class = $this->parseControllerCallback()[0];
$this->controller = $this->container->make(ltrim($class, '\\'));
}
return $this->controller;
}
/**
Arguments
Themosis\Route\Route {#1123}
App\Http\Controllers\PagesController {#1881}
"error404"
/var/www/eslab.pl/vendor/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.
/var/www/eslab.pl/vendor/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);
}
/**
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Route/Middleware/WordPressBodyClass.php
{
$this->filter = $filter;
}
/**
* Handle incoming request.
*
* @param $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, \Closure $next)
{
$this->filter->add(
'body_class',
$this->dispatchBodyClass($request->route())
);
return $next($request);
}
/**
* Return the callback managing route body CSS classes.
*
* @param Route $route
*
* @return \Closure
*/
protected function dispatchBodyClass(Route $route)
{
return function ($classes) use ($route) {
if ($route->hasCondition()) {
return $classes;
}
$tokens = array_filter(array_map(function ($token) use ($route) {
switch ($type = $token[0]) {
case 'variable':
if (isset($token[3]) && $route->hasParameter($paramKey = $token[3])) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1899 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Core/Http/Middleware/VerifyCsrfToken.php
$this->encrypter = $encrypter;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @throws TokenMismatchException
*
* @return mixed
*/
public function handle($request, \Closure $next)
{
if ($this->isReading($request)
|| $this->isRunningUnitTests()
|| $this->inExceptArray($request)
|| $this->tokensMatch($request)) {
return tap($next($request), function ($response) use ($request) {
if ($this->addHttpCookie) {
$this->addCookieToResponse($request, $response);
}
});
}
throw new TokenMismatchException();
}
/**
* Determine if the HTTP request uses a "read" verb.
*
* @param \Illuminate\Http\Request $request
*
* @return bool
*/
protected function isReading(Request $request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1901 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1902 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1903 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/session/Middleware/StartSession.php
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (! $this->sessionConfigured()) {
return $next($request);
}
// 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.
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
// 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.
$this->saveSession($request);
return $response;
}
/**
* Start the session for the given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Contracts\Session\Session
*/
protected function startSession(Request $request)
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1904 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Route/Middleware/WordPressBindings.php
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, \Closure $next)
{
$route = $request->route();
if ($route->hasCondition()) {
$this->router->addWordPressBindings($route);
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1905 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Route/Middleware/WordPressHeaders.php
namespace Themosis\Route\Middleware;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class WordPressHeaders
{
/**
* Cleanup response headers.
*
* @param Request $request
* @param \Closure $next
*
* @return Response
*/
public function handle(Request $request, \Closure $next)
{
$route = $request->route();
$response = $next($request);
if (! $route->hasCondition() && function_exists('is_user_logged_in') && ! is_user_logged_in()) {
// We're on a custom route. Remove "no-cache" headers added by WordPress:
// - Cache-Control
// - Expires
// - Content-type (provided by the response instance as well)
@header_remove('Cache-Control');
@header_remove('Expires');
@header_remove('Content-Type');
}
// Set the response cache control to "public"
// on pages visited by guest users only.
if (function_exists('is_user_logged_in') && ! is_user_logged_in()) {
$response->setPublic();
}
return $response;
}
}
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$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];
}
$response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $response instanceof Responsable
? $response->toResponse($this->getContainer()->make(Request::class))
: $response;
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#1906 …4}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/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);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/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($request) {#1897 …4}
/var/www/eslab.pl/vendor/illuminate/routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Routing\Route $route
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* 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)
Arguments
Themosis\Route\Route {#1123}
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/illuminate/routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
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 \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* 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;
}
/**
* Return the response for the given route.
*
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Themosis\Route\Route {#1123}
/var/www/eslab.pl/vendor/illuminate/routing/Router.php
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
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 \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Core/Http/Kernel.php
protected function sendRequestThroughRouter($request)
{
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Get route dispatcher callback used by the
* routing pipeline.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Bootstrap the application.
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Return the bootstrappers array.
*
* @return array
*/
protected function bootstrappers()
{
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/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
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/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);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Core/Http/Kernel.php
* @return bool
*/
public function hasMiddleware($middleware)
{
return in_array($middleware, $this->middleware);
}
/**
* Send given request through the middleware (if any) and router.
*
* @param \Illuminate\Http\Request $request
*
* @return IlluminateResponse
*/
protected function sendRequestThroughRouter($request)
{
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Get route dispatcher callback used by the
* routing pipeline.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Bootstrap the application.
*/
Arguments
Closure($request) {#1606 …4}
/var/www/eslab.pl/vendor/themosis/framework/src/Core/Http/Kernel.php
*/
public function init($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
*
* @return IlluminateResponse
*/
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 RequestHandled($request, $response)
);
return $response;
}
/**
* Determine if the kernel has a given middleware.
*
* @param string $middleware
*
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/vendor/themosis/framework/src/Core/Application.php
foreach ($this->terminatingCallbacks as $terminating) {
$this->call($terminating);
}
}
/**
* Handle incoming request and return a response.
* Abstract the implementation from the user for easy
* theme integration.
*
* @param string $kernel Application kernel class name.
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return $this
*/
public function manage(string $kernel, $request)
{
$kernel = $this->make($kernel);
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
return $this;
}
/**
* Handle WordPress administration incoming request.
* Only send response headers.
*
* @param string $kernel
* @param \Symfony\Component\HttpFoundation\Request $request
*
* @return $this;
*/
public function manageAdmin(string $kernel, $request)
{
if (! $this->isWordPressAdmin() && ! $this->has('action')) {
return $this;
Arguments
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/htdocs/content/themes/eslab/index.php
<?php
use Illuminate\Contracts\Http\Kernel;
use Themosis\Core\Application;
/**
* Default WordPress template.
*
* By default, routes should be defined at application
* root into the routes/web.php file.
*
* Routes can be overwritten using theme routes.php file.
*/
$app = Application::getInstance();
$app->manage(Kernel::class, $app['request']);
Arguments
App\Http\Kernel {#34}
Illuminate\Http\Request {#48
#json: null
#convertedFiles: null
#userResolver: Closure($guard = null) {#1879 …4}
#routeResolver: Closure() {#1883 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#50}
+request: Symfony\Component\HttpFoundation\ParameterBag {#56}
+query: Symfony\Component\HttpFoundation\ParameterBag {#56}
+server: Symfony\Component\HttpFoundation\ServerBag {#52}
+files: Symfony\Component\HttpFoundation\FileBag {#53}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#51}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#54}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/index_files/vlb_images1/c2.jpg"
#requestUri: "/index_files/vlb_images1/c2.jpg"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1916}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/eslab.pl/htdocs/cms/wp-includes/template-loader.php
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
Arguments
"/var/www/eslab.pl/htdocs/content/themes/eslab/index.php"
/var/www/eslab.pl/htdocs/cms/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/var/www/eslab.pl/htdocs/cms/wp-includes/template-loader.php"
/var/www/eslab.pl/htdocs/index.php
<?php
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require dirname(__FILE__).'/cms/wp-blog-header.php';
Arguments
"/var/www/eslab.pl/htdocs/cms/wp-blog-header.php"