/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function getCachedRoutesPath()
{
return $this->bootstrapPath() . '/cache/routes.php';
}
public function getCachedCompilePath()
{
return $this->bootstrapPath() . '/cache/compiled.php';
}
public function getCachedServicesPath()
{
return $this->bootstrapPath() . '/cache/services.php';
}
public function isDownForMaintenance()
{
return file_exists($this->storagePath() . '/framework/down');
}
public function abort($code, $message = '', array $headers = [])
{
if ($code == 404) {
throw new NotFoundHttpException($message);
}
throw new HttpException($code, $message, null, $headers);
}
public function terminating(Closure $callback)
{
$this->terminatingCallbacks[] = $callback;
return $this;
}
public function terminate()
{
foreach ($this->terminatingCallbacks as $terminating) {
$this->call($terminating);
}
}
public function getLoadedProviders()
{
return $this->loadedProviders;
}
public function getDeferredServices()
{
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
use Illuminate\Contracts\Cookie\Factory as CookieFactory;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
use Illuminate\Contracts\Validation\Factory as ValidationFactory;
use Illuminate\Contracts\Broadcasting\Factory as BroadcastFactory;
if (! function_exists('abort')) {
/**
* Throw an HttpException with the given data.
*
* @param int $code
* @param string $message
* @param array $headers
* @return void
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
function abort($code, $message = '', array $headers = [])
{
app()->abort($code, $message, $headers);
}
}
if (! function_exists('abort_if')) {
/**
* Throw an HttpException with the given data if the given condition is true.
*
* @param bool $boolean
* @param int $code
* @param string $message
* @param array $headers
* @return void
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
function abort_if($boolean, $code, $message = '', array $headers = [])
{
if ($boolean) {
abort($code, $message, $headers);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/core/mokyklos/naujienos-module/src/Http/Controller/NaujienosController.php
'naujiena' => $naujiena,
'show_gallery' => $show_gallery,
]);
}
/**
* View an existing naujiena.
*
* @param NaujienaRepositoryInterface $naujienos
* @param NaujienaResolver $resolver
* @param ConfigRepository $config
* @return null|\Symfony\Component\HttpFoundation\Response
*/
public function categoryView(
NaujienaRepositoryInterface $naujienos,
NaujienaResolver $resolver,
ConfigRepository $config
) {
if (! $naujiena = $resolver->resolve()) {
abort(404);
}
$this->breadcrumbs->add($naujiena->getCategory()->getTitle(), $naujiena->getCategory()->route('view'));
$this->breadcrumbs->add($naujiena->getTitle());
$this->template->set('meta_title', $naujiena->getMetaTitle());
$this->template->set('meta_description', $naujiena->getMetaDescription());
if (! $naujiena->isLive()) {
return view('mokyklos.module.naujienos::naujienos.disabled');
}
$related = $naujienos->newQuery()
->live()
->where('id', '!=', $naujiena->id)
->where('publish_at', '<', $naujiena->publish_at)
->where('category_id', $naujiena->category_id)
->limit($config->get('mokyklos.module.naujienos::config.related_limit'))
->orderBy('created_at', 'DESC')
->get();
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
namespace Illuminate\Routing {
use BadMethodCallException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
abstract class Controller
{
protected $middleware = [];
public function middleware($middleware, array $options = [])
{
foreach ((array) $middleware as $m) {
$this->middleware[] = ['middleware' => $m, 'options' => &$options];
}
return new ControllerMiddlewareOptions($options);
}
public function getMiddleware()
{
return $this->middleware;
}
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
public function missingMethod($parameters = [])
{
throw new NotFoundHttpException('Controller method not found.');
}
public function __call($method, $parameters)
{
throw new BadMethodCallException("Method [{$method}] does not exist.");
}
}
}
namespace Illuminate\Routing {
use Illuminate\Container\Container;
class ControllerDispatcher
{
use RouteDependencyResolverTrait;
protected $container;
public function __construct(Container $container)
{
Arguments
NaujienaRepository {#2856}
NaujienaResolver {#2910}
Repository {#23}
"didziuojames"
"2021"
"02"
"sveikiname-2021-02-25-08-54"
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
namespace Illuminate\Routing {
use BadMethodCallException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
abstract class Controller
{
protected $middleware = [];
public function middleware($middleware, array $options = [])
{
foreach ((array) $middleware as $m) {
$this->middleware[] = ['middleware' => $m, 'options' => &$options];
}
return new ControllerMiddlewareOptions($options);
}
public function getMiddleware()
{
return $this->middleware;
}
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
public function missingMethod($parameters = [])
{
throw new NotFoundHttpException('Controller method not found.');
}
public function __call($method, $parameters)
{
throw new BadMethodCallException("Method [{$method}] does not exist.");
}
}
}
namespace Illuminate\Routing {
use Illuminate\Container\Container;
class ControllerDispatcher
{
use RouteDependencyResolverTrait;
protected $container;
public function __construct(Container $container)
{
Arguments
array:2 [
0 => NaujienosController {#2852}
1 => "categoryView"
]
array:7 [
0 => NaujienaRepository {#2856}
1 => NaujienaResolver {#2910}
2 => Repository {#23}
"category" => "didziuojames"
"year" => "2021"
"month" => "02"
"slug" => "sveikiname-2021-02-25-08-54"
]
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
throw new BadMethodCallException("Method [{$method}] does not exist.");
}
}
}
namespace Illuminate\Routing {
use Illuminate\Container\Container;
class ControllerDispatcher
{
use RouteDependencyResolverTrait;
protected $container;
public function __construct(Container $container)
{
$this->container = $container;
}
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 call_user_func_array([$controller, $method], $parameters);
}
public static function getMiddleware($controller, $method)
{
if (!method_exists($controller, 'getMiddleware')) {
return [];
}
return collect($controller->getMiddleware())->reject(function ($data) use($method) {
return static::methodExcludedByOptions($method, $data['options']);
})->pluck('middleware')->all();
}
protected static function methodExcludedByOptions($method, array $options)
{
return isset($options['only']) && !in_array($method, (array) $options['only']) || !empty($options['except']) && in_array($method, (array) $options['except']);
}
}
}
namespace Illuminate\Routing {
Arguments
"categoryView"
array:7 [
0 => NaujienaRepository {#2856}
1 => NaujienaResolver {#2910}
2 => Repository {#23}
"category" => "didziuojames"
"year" => "2021"
"month" => "02"
"slug" => "sveikiname-2021-02-25-08-54"
]
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
protected function isControllerAction()
{
return is_string($this->action['uses']);
}
protected function runCallable()
{
$parameters = $this->resolveMethodDependencies($this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses']));
$callable = $this->action['uses'];
return $callable(...array_values($parameters));
}
protected function runController()
{
return (new ControllerDispatcher($this->container))->dispatch($this, $this->getController(), $this->getControllerMethod());
}
public function getController()
{
list($class) = explode('@', $this->action['uses']);
if (!$this->controller) {
$this->controller = $this->container->make($class);
}
return $this->controller;
}
protected function getControllerMethod()
{
return explode('@', $this->action['uses'])[1];
}
public function matches(Request $request, $includingMethod = true)
{
$this->compileRoute();
foreach ($this->getValidators() as $validator) {
if (!$includingMethod && $validator instanceof MethodValidator) {
continue;
}
Arguments
Route {#879}
NaujienosController {#2852}
"categoryView"
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
protected $container;
public static $validators;
public function __construct($methods, $uri, $action)
{
$this->uri = $uri;
$this->methods = (array) $methods;
$this->action = $this->parseAction($action);
if (in_array('GET', $this->methods) && !in_array('HEAD', $this->methods)) {
$this->methods[] = 'HEAD';
}
if (isset($this->action['prefix'])) {
$this->prefix($this->action['prefix']);
}
}
public function run(Request $request)
{
$this->container = $this->container ?: new Container();
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
protected function isControllerAction()
{
return is_string($this->action['uses']);
}
protected function runCallable()
{
$parameters = $this->resolveMethodDependencies($this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses']));
$callable = $this->action['uses'];
return $callable(...array_values($parameters));
}
protected function runController()
{
return (new ControllerDispatcher($this->container))->dispatch($this, $this->getController(), $this->getControllerMethod());
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
{
$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();
return $this->sortMiddleware($middleware);
}
public function resolveMiddlewareClassName($name)
{
$map = $this->middleware;
if ($name instanceof Closure) {
return $name;
} elseif (isset($map[$name]) && $map[$name] instanceof Closure) {
return $map[$name];
} elseif (isset($this->middlewareGroups[$name])) {
return $this->parseMiddlewareGroup($name);
} else {
list($name, $parameters) = array_pad(explode(':', $name, 2), 2, null);
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/CheckForMaintenanceMode.php
$this->config = $config;
$this->authorizer = $authorizer;
$this->application = $application;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return void|mixed
*/
public function handle(Request $request, Closure $next)
{
if (!$this->application->isEnabled()) {
abort(503);
}
if (!$this->app->isDownForMaintenance()) {
return $next($request);
}
if ($request->segment(1) == 'admin' || str_is('form/handle/*', $request->path())) {
return $next($request);
}
if (in_array($request->getClientIp(), $this->config->get('streams::maintenance.ip_whitelist', []))) {
return $next($request);
}
/* @var UserInterface $user */
$user = $this->guard->user();
if ($user && $user->isAdmin()) {
return $next($request);
}
if ($user && $this->authorizer->authorize('streams::maintenance.access')) {
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 {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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/vendor/anomaly/streams-platform/src/Http/Middleware/ApplicationReady.php
* Fire an event here as we enter the middleware
* layer of the application so we can hook into it.
*
* @param Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$response = $this->events->fire(new ApplicationHasLoaded(), [], true);
if (!defined('IS_ADMIN')) {
define('IS_ADMIN', $request->segment(1) == 'admin');
}
if ($response instanceof Response) {
return $response;
}
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 {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
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/vendor/anomaly/streams-platform/src/Http/Middleware/SetLocale.php
* @param Application $application
*/
public function __construct(Repository $config, Redirector $redirect, Application $application)
{
$this->config = $config;
$this->redirect = $redirect;
$this->application = $application;
}
/**
* Look for locale=LOCALE in the query string.
*
* @param Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if (defined('LOCALE')) {
return $next($request);
}
if ($locale = $request->get('_locale')) {
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'));
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 {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
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/vendor/anomaly/streams-platform/src/Http/Middleware/PoweredBy.php
* Create a new PoweredBy instance.
*
* @param Repository $config
*/
public function __construct(Repository $config)
{
$this->config = $config;
}
/**
* Say it loud.
*
* @param Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
/* @var \Illuminate\Http\Response $response */
$response = $next($request);
$response->headers->set(
'X-Streams-Distribution',
$this->config->get('streams::distribution.name') . '-' . $this->config->get('streams::distribution.version')
);
return $response;
}
}
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 {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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/vendor/anomaly/streams-platform/src/Http/Middleware/VerifyCsrfToken.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function handle(Request $request, Closure $next)
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->shouldPassThrough($request) ||
$this->tokensMatch($request)
) {
return $this->addCookieToResponse($request, $next($request));
}
$this->messages->error('streams::message.csrf_token_mismatch');
return $this->redirector->back(302);
}
/**
* Determine if the request has a URI that should pass through CSRF verification.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function shouldPassThrough(Request $request)
{
foreach ($this->except as $except) {
if ($except !== '/') {
$except = trim($except, '/');
}
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 {#2854
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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: "Anomaly\Streams\Platform\Http\Middleware\PoweredBy"
}
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/core/anomaly/users-module/src/Http/Middleware/AuthorizeRoutePermission.php
}
$permission = (array)array_get($this->route->getAction(), 'anomaly.module.users::permission');
$redirect = array_get($this->route->getAction(), 'anomaly.module.users::redirect');
$message = array_get($this->route->getAction(), 'anomaly.module.users::message');
if ($permission && !$this->authorizer->authorizeAny($permission, null, true)) {
if ($message) {
$this->messages->error($message);
}
if ($redirect) {
return $this->redirect->to($redirect);
}
abort(403);
}
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 {#2882
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2854
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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: "Anomaly\Streams\Platform\Http\Middleware\PoweredBy"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\VerifyCsrfToken"
}
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/core/anomaly/users-module/src/Http/Middleware/AuthorizeControlPanel.php
* Create a new AuthorizeControlPanel instance.
*
* @param Authorizer $authorizer
*/
public function __construct(Authorizer $authorizer)
{
$this->authorizer = $authorizer;
}
/**
* Check the authorization of module access.
*
* @param Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout'])) {
return $next($request);
}
if (!$this->authorizer->authorize('streams::control_panel.access')) {
abort(403);
}
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 {#2861
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2882
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2854
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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: "Anomaly\Streams\Platform\Http\Middleware\PoweredBy"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\VerifyCsrfToken"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeRoutePermission"
}
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/core/anomaly/users-module/src/Http/Middleware/AuthorizeModuleAccess.php
* @param ModuleCollection $modules
* @param Authorizer $authorizer
*/
public function __construct(ModuleCollection $modules, Authorizer $authorizer)
{
$this->modules = $modules;
$this->authorizer = $authorizer;
}
/**
* Check the authorization of module access.
*
* @param Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout'])) {
return $next($request);
}
$module = $this->modules->active();
if ($module && !$this->authorizer->authorize($module->getNamespace('*'))) {
abort(403);
}
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 {#2889
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2861
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2882
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2854
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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: "Anomaly\Streams\Platform\Http\Middleware\PoweredBy"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\VerifyCsrfToken"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeRoutePermission"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeControlPanel"
}
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/core/anomaly/users-module/src/Http/Middleware/AuthorizeRouteRoles.php
* then pass through if no user.
*/
if ($role && in_array('guest', $role) && !$user) {
return $next($request);
}
if ($role && (!$user || !$user->hasAnyRole($role))) {
if ($message) {
$this->messages->error($message);
}
if ($redirect) {
return $this->redirect->to($redirect);
}
abort(403);
}
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 {#2888
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2889
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2861
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2882
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2854
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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: "Anomaly\Streams\Platform\Http\Middleware\PoweredBy"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\VerifyCsrfToken"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeRoutePermission"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeControlPanel"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeModuleAccess"
}
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/core/anomaly/users-module/src/Http/Middleware/CheckSecurity.php
$this->response = $response;
$this->security = $security;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$response = $this->security->check($this->guard->user());
if ($response instanceof Response) {
return $response;
}
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 {#2887
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2888
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2889
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2861
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2882
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2854
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2885
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2884
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2857
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2883
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#2851 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2850 …6}
}
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\CheckForMaintenanceMode"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\ApplicationReady"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$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: "Anomaly\Streams\Platform\Http\Middleware\PoweredBy"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\VerifyCsrfToken"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeRoutePermission"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeControlPanel"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeModuleAccess"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Anomaly\UsersModule\Http\Middleware\AuthorizeRouteRoles"
}
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
$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();
return $this->sortMiddleware($middleware);
}
public function resolveMiddlewareClassName($name)
{
$map = $this->middleware;
if ($name instanceof Closure) {
return $name;
} elseif (isset($map[$name]) && $map[$name] instanceof Closure) {
return $map[$name];
} elseif (isset($this->middlewareGroups[$name])) {
return $this->parseMiddlewareGroup($name);
} else {
list($name, $parameters) = array_pad(explode(':', $name, 2), 2, null);
return (isset($map[$name]) ? $map[$name] : $name) . (!is_null($parameters) ? ':' . $parameters : '');
Arguments
Closure {#2850
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#879}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "8354 to 8356"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
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();
return $this->sortMiddleware($middleware);
}
public function resolveMiddlewareClassName($name)
{
$map = $this->middleware;
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
* @param Application $application
*/
public function __construct(Repository $config, Redirector $redirect, Application $application)
{
$this->config = $config;
$this->redirect = $redirect;
$this->application = $application;
}
/**
* Look for locale=LOCALE in the query string.
*
* @param Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if (defined('LOCALE')) {
return $next($request);
}
if ($locale = $request->get('_locale')) {
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'));
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