/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
$this->nameList[$route->getName()] = $route;
}
}
}
protected function addToActionList($action, $route)
{
$this->actionList[trim($action['controller'], '\\')] = $route;
}
public function match(Request $request)
{
$routes = $this->get($request->getMethod());
$route = $this->check($routes, $request);
if (!is_null($route)) {
return $route->bind($request);
}
$others = $this->checkForAlternateVerbs($request);
if (count($others) > 0) {
return $this->getRouteForMethods($request, $others);
}
throw new NotFoundHttpException();
}
protected function checkForAlternateVerbs($request)
{
$methods = array_diff(Router::$verbs, [$request->getMethod()]);
$others = [];
foreach ($methods as $method) {
if (!is_null($this->check($this->get($method), $request, false))) {
$others[] = $method;
}
}
return $others;
}
protected function getRouteForMethods($request, array $methods)
{
if ($request->method() == 'OPTIONS') {
return (new Route('OPTIONS', $request->path(), function () use($methods) {
return new Response('', 200, ['Allow' => implode(',', $methods)]);
}))->bind($request);
}
$this->methodNotAllowed($methods);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
foreach ($this->middlewareGroups[$name] as $middleware) {
if (isset($this->middlewareGroups[$middleware])) {
$results = array_merge($results, $this->parseMiddlewareGroup($middleware));
continue;
}
list($middleware, $parameters) = array_pad(explode(':', $middleware, 2), 2, null);
if (isset($this->middleware[$middleware])) {
$middleware = $this->middleware[$middleware];
}
$results[] = $middleware . ($parameters ? ':' . $parameters : '');
}
return $results;
}
protected function sortMiddleware(Collection $middlewares)
{
return (new SortedMiddleware($this->middlewarePriority, $middlewares))->all();
}
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance('Illuminate\\Routing\\Route', $route);
return $route;
}
public function substituteBindings($route)
{
foreach ($route->parameters() as $key => $value) {
if (isset($this->binders[$key])) {
$route->setParameter($key, $this->performBinding($key, $value, $route));
}
}
return $route;
}
public function substituteImplicitBindings($route)
{
$parameters = $route->parameters();
foreach ($route->signatureParameters(Model::class) as $parameter) {
$class = $parameter->getClass();
if (array_key_exists($parameter->name, $parameters) && !$route->getParameter($parameter->name) instanceof Model) {
$method = $parameter->isDefaultValueAvailable() ? 'first' : 'firstOrFail';
$model = $this->container->make($class->name);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
}
if (!empty($this->groupStack)) {
$action['uses'] = $this->prependGroupUses($action['uses']);
}
$action['controller'] = $action['uses'];
return $action;
}
protected function prependGroupUses($uses)
{
$group = end($this->groupStack);
return isset($group['namespace']) && strpos($uses, '\\') !== 0 ? $group['namespace'] . '\\' . $uses : $uses;
}
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
public function dispatchToRoute(Request $request)
{
$route = $this->findRoute($request);
$request->setRouteResolver(function () use($route) {
return $route;
});
$this->events->fire(new Events\RouteMatched($route, $request));
$response = $this->runRouteWithinStack($route, $request);
return $this->prepareResponse($request, $response);
}
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($request));
});
}
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) $this->resolveMiddlewareClassName($name);
})->flatten();
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
protected function convertToControllerAction($action)
{
if (is_string($action)) {
$action = ['uses' => $action];
}
if (!empty($this->groupStack)) {
$action['uses'] = $this->prependGroupUses($action['uses']);
}
$action['controller'] = $action['uses'];
return $action;
}
protected function prependGroupUses($uses)
{
$group = end($this->groupStack);
return isset($group['namespace']) && strpos($uses, '\\') !== 0 ? $group['namespace'] . '\\' . $uses : $uses;
}
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
public function dispatchToRoute(Request $request)
{
$route = $this->findRoute($request);
$request->setRouteResolver(function () use($route) {
return $route;
});
$this->events->fire(new Events\RouteMatched($route, $request));
$response = $this->runRouteWithinStack($route, $request);
return $this->prepareResponse($request, $response);
}
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($request));
});
}
public function gatherRouteMiddleware(Route $route)
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
return $this;
}
public function pushMiddleware($middleware)
{
if (array_search($middleware, $this->middleware) === false) {
$this->middleware[] = $middleware;
}
return $this;
}
public function bootstrap()
{
if (!$this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
public function hasMiddleware($middleware)
{
return in_array($middleware, $this->middleware);
}
protected function bootstrappers()
{
return $this->bootstrappers;
}
protected function reportException(Exception $e)
{
$this->app[ExceptionHandler::class]->report($e);
}
protected function renderException($request, Exception $e)
{
return $this->app[ExceptionHandler::class]->render($request, $e);
}
public function getApplication()
{
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(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));
}
};
}
/**
* 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) {
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/anomaly/streams-platform/src/Http/Middleware/SetLocale.php
if ($locale) {
$request->session()->put('_locale', $locale);
} else {
$request->session()->remove('_locale');
}
return $this->redirect->back();
}
if ($locale = $request->session()->get('_locale')) {
$this->application->setLocale($locale);
$this->config->set('_locale', $locale);
}
if (!$locale) {
$this->application->setLocale($this->config->get('streams::locales.default'));
}
return $next($request);
}
}
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/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 a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$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));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
$this->dispatcher = $dispatcher;
}
}
}
namespace Illuminate\View\Middleware {
use Closure;
use Illuminate\Support\ViewErrorBag;
use Illuminate\Contracts\View\Factory as ViewFactory;
class ShareErrorsFromSession
{
protected $view;
public function __construct(ViewFactory $view)
{
$this->view = $view;
}
public function handle($request, Closure $next)
{
$this->view->share('errors', $request->session()->get('errors') ?: new ViewErrorBag());
return $next($request);
}
}
}
namespace Monolog {
use Monolog\Handler\HandlerInterface;
use Monolog\Handler\StreamHandler;
use Psr\Log\LoggerInterface;
use Psr\Log\InvalidArgumentException;
class Logger implements LoggerInterface
{
const DEBUG = 100;
const INFO = 200;
const NOTICE = 250;
const WARNING = 300;
const ERROR = 400;
const CRITICAL = 500;
const ALERT = 550;
const EMERGENCY = 600;
const API = 1;
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/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 a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$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));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
use Illuminate\Session\CookieSessionHandler;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoundation\Response;
class StartSession
{
protected $manager;
protected $sessionHandled = false;
public function __construct(SessionManager $manager)
{
$this->manager = $manager;
}
public function handle($request, Closure $next)
{
$this->sessionHandled = true;
if ($this->sessionConfigured()) {
$session = $this->startSession($request);
$request->setSession($session);
$this->collectGarbage($session);
}
$response = $next($request);
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
public function terminate($request, $response)
{
if ($this->sessionHandled && $this->sessionConfigured() && !$this->usingCookieSessions()) {
$this->manager->driver()->save();
}
}
protected function startSession(Request $request)
{
$session = $this->getSession($request);
$session->setRequestOnHandler($request);
$session->start();
return $session;
}
public function getSession(Request $request)
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2658
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/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 a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$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));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function isDisabled($name)
{
return in_array($name, $this->except);
}
}
}
namespace Illuminate\Cookie\Middleware {
use Closure;
use Illuminate\Contracts\Cookie\QueueingFactory as CookieJar;
class AddQueuedCookiesToResponse
{
protected $cookies;
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
}
namespace Illuminate\Encryption {
use RuntimeException;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Contracts\Encryption\EncryptException;
use Illuminate\Contracts\Encryption\Encrypter as EncrypterContract;
class Encrypter implements EncrypterContract
{
protected $key;
protected $cipher;
public function __construct($key, $cipher = 'AES-128-CBC')
{
$key = (string) $key;
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2657
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2658
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/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 a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$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));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Contracts\Encryption\Encrypter as EncrypterContract;
class EncryptCookies
{
protected $encrypter;
protected $except = [];
public function __construct(EncrypterContract $encrypter)
{
$this->encrypter = $encrypter;
}
public function disableFor($cookieName)
{
$this->except = array_merge($this->except, (array) $cookieName);
}
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($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);
}
}
return $request;
}
protected function decryptCookie($cookie)
{
return is_array($cookie) ? $this->decryptArray($cookie) : $this->encrypter->decrypt($cookie);
}
protected function decryptArray(array $cookie)
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2656
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2657
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2658
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/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 a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$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));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function send($passable)
{
$this->passable = $passable;
return $this;
}
public function through($pipes)
{
$this->pipes = is_array($pipes) ? $pipes : func_get_args();
return $this;
}
public function via($method)
{
$this->method = $method;
return $this;
}
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
{
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']->fire('kernel.handled', [$request, $response]);
return $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());
}
public function terminate($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge($this->gatherRouteMiddleware($request), $this->middleware);
foreach ($middlewares as $middleware) {
if (!is_string($middleware)) {
continue;
}
list($name, $parameters) = $this->parseMiddleware($middleware);
$instance = $this->app->make($name);
if (method_exists($instance, 'terminate')) {
$instance->terminate($request, $response);
}
}
$this->app->terminate();
}
protected function gatherRouteMiddleware($request)
{
if ($route = $request->route()) {
return $this->router->gatherRouteMiddleware($route);
Arguments
Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
protected $middlewareGroups = [];
protected $routeMiddleware = [];
protected $middlewarePriority = [\Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \Illuminate\Auth\Middleware\Authenticate::class, \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, \Illuminate\Auth\Middleware\Authorize::class];
public function __construct(Application $app, Router $router)
{
$this->app = $app;
$this->router = $router;
$router->middlewarePriority = $this->middlewarePriority;
foreach ($this->middlewareGroups as $key => $middleware) {
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->middleware($key, $middleware);
}
}
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']->fire('kernel.handled', [$request, $response]);
return $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());
}
public function terminate($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge($this->gatherRouteMiddleware($request), $this->middleware);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/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);
/*Set locale for carbon human date*/
setlocale(LC_TIME, 'lt_LT.utf8');
Arguments