/home/salcinin/domains/eisiskiugimnazija.lt/public_html/core/webas/feedback-module/src/Http/Controller/ButtonsController.php
$post['slug']
));
}
if ($click = $this->getClick($post)) {
$click->increment('count');
return response()->json([
'success' => true,
]);
}
if ($this->createNewClick($post)) {
return response()->json([
'success' => true,
]);
}
}
throw new \Exception(
'Not AJAX request'
);
}
private function createNewClick($post)
{
$data = [
'entry_type' => $post['entry_type'],
'entry_id' => $post['entry_id'],
'slug' => $post['slug'],
'count' => 1,
];
return $this->clicks->create($data);
}
private function getClick($post)
{
return $this->clicks
->newQuery()
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)
{
/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 => ButtonsController {#3003}
1 => "index"
]
[]
/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
/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
/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/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 {#3000
class: "Illuminate\Routing\Router"
this: Router {#24 …}
parameters: {
$request: {}
}
use: {
$route: Route {#1141}
}
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
if ($locale) {
$request->session()->put('_locale', $locale);
} else {
$request->session()->remove('_locale');
}
return $this->redirect->back();
}
if ($locale = $request->session()->get('_locale')) {
$this->application->setLocale($locale);
$this->config->set('_locale', $locale);
}
if (!$locale) {
$this->application->setLocale($this->config->get('streams::locales.default'));
}
return $next($request);
}
}
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
$this->dispatcher = $dispatcher;
}
}
}
namespace Illuminate\View\Middleware {
use Closure;
use Illuminate\Support\ViewErrorBag;
use Illuminate\Contracts\View\Factory as ViewFactory;
class ShareErrorsFromSession
{
protected $view;
public function __construct(ViewFactory $view)
{
$this->view = $view;
}
public function handle($request, Closure $next)
{
$this->view->share('errors', $request->session()->get('errors') ?: new ViewErrorBag());
return $next($request);
}
}
}
namespace Monolog {
use Monolog\Handler\HandlerInterface;
use Monolog\Handler\StreamHandler;
use Psr\Log\LoggerInterface;
use Psr\Log\InvalidArgumentException;
class Logger implements LoggerInterface
{
const DEBUG = 100;
const INFO = 200;
const NOTICE = 250;
const WARNING = 300;
const ERROR = 400;
const CRITICAL = 500;
const ALERT = 550;
const EMERGENCY = 600;
const API = 1;
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
use Illuminate\Session\CookieSessionHandler;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoundation\Response;
class StartSession
{
protected $manager;
protected $sessionHandled = false;
public function __construct(SessionManager $manager)
{
$this->manager = $manager;
}
public function handle($request, Closure $next)
{
$this->sessionHandled = true;
if ($this->sessionConfigured()) {
$session = $this->startSession($request);
$request->setSession($session);
$this->collectGarbage($session);
}
$response = $next($request);
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
public function terminate($request, $response)
{
if ($this->sessionHandled && $this->sessionConfigured() && !$this->usingCookieSessions()) {
$this->manager->driver()->save();
}
}
protected function startSession(Request $request)
{
$session = $this->getSession($request);
$session->setRequestOnHandler($request);
$session->start();
return $session;
}
public function getSession(Request $request)
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2658
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function isDisabled($name)
{
return in_array($name, $this->except);
}
}
}
namespace Illuminate\Cookie\Middleware {
use Closure;
use Illuminate\Contracts\Cookie\QueueingFactory as CookieJar;
class AddQueuedCookiesToResponse
{
protected $cookies;
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
}
namespace Illuminate\Encryption {
use RuntimeException;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Contracts\Encryption\EncryptException;
use Illuminate\Contracts\Encryption\Encrypter as EncrypterContract;
class Encrypter implements EncrypterContract
{
protected $key;
protected $cipher;
public function __construct($key, $cipher = 'AES-128-CBC')
{
$key = (string) $key;
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2657
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2658
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Contracts\Encryption\Encrypter as EncrypterContract;
class EncryptCookies
{
protected $encrypter;
protected $except = [];
public function __construct(EncrypterContract $encrypter)
{
$this->encrypter = $encrypter;
}
public function disableFor($cookieName)
{
$this->except = array_merge($this->except, (array) $cookieName);
}
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $c) {
if ($this->isDisabled($key)) {
continue;
}
try {
$request->cookies->set($key, $this->decryptCookie($c));
} catch (DecryptException $e) {
$request->cookies->set($key, null);
}
}
return $request;
}
protected function decryptCookie($cookie)
{
return is_array($cookie) ? $this->decryptArray($cookie) : $this->encrypter->decrypt($cookie);
}
protected function decryptArray(array $cookie)
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use($destination) {
return $destination($passable);
};
}
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
}
protected function getContainer()
{
if (!$this->container) {
Arguments
Request {#40}
Closure {#2656
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2657
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2658
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2660
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#2650
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#28 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "51 to 59"
}
$pipe: "Anomaly\Streams\Platform\Http\Middleware\SetLocale"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
$pipe: "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php"
line: "28 to 39"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::getSlice();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Get the initial slice to begin the stack call.
*
* @param \Closure $destination
* @return \Closure
*/
protected function getInitialSlice(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
public function send($passable)
{
$this->passable = $passable;
return $this;
}
public function through($pipes)
{
$this->pipes = is_array($pipes) ? $pipes : func_get_args();
return $this;
}
public function via($method)
{
$this->method = $method;
return $this;
}
public function then(Closure $destination)
{
$firstSlice = $this->getInitialSlice($destination);
$callable = array_reduce(array_reverse($this->pipes), $this->getSlice(), $firstSlice);
return $callable($this->passable);
}
protected function getSlice()
{
return function ($stack, $pipe) {
return function ($passable) use($stack, $pipe) {
if ($pipe instanceof Closure) {
return $pipe($passable, $stack);
} elseif (!is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
$parameters = [$passable, $stack];
}
return $pipe->{$this->method}(...$parameters);
};
};
}
protected function getInitialSlice(Closure $destination)
{
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->fire('kernel.handled', [$request, $response]);
return $response;
}
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))->send($request)->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)->then($this->dispatchToRouter());
}
public function terminate($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge($this->gatherRouteMiddleware($request), $this->middleware);
foreach ($middlewares as $middleware) {
if (!is_string($middleware)) {
continue;
}
list($name, $parameters) = $this->parseMiddleware($middleware);
$instance = $this->app->make($name);
if (method_exists($instance, 'terminate')) {
$instance->terminate($request, $response);
}
}
$this->app->terminate();
}
protected function gatherRouteMiddleware($request)
{
if ($route = $request->route()) {
return $this->router->gatherRouteMiddleware($route);
Arguments
Closure {#2651
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#25 …}
parameters: {
$request: {}
}
file: "/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php"
line: "2573 to 2576"
}
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/bootstrap/cache/compiled.php
protected $middlewareGroups = [];
protected $routeMiddleware = [];
protected $middlewarePriority = [\Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \Illuminate\Auth\Middleware\Authenticate::class, \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, \Illuminate\Auth\Middleware\Authorize::class];
public function __construct(Application $app, Router $router)
{
$this->app = $app;
$this->router = $router;
$router->middlewarePriority = $this->middlewarePriority;
foreach ($this->middlewareGroups as $key => $middleware) {
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->middleware($key, $middleware);
}
}
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->fire('kernel.handled', [$request, $response]);
return $response;
}
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))->send($request)->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)->then($this->dispatchToRouter());
}
public function terminate($request, $response)
{
$middlewares = $this->app->shouldSkipMiddleware() ? [] : array_merge($this->gatherRouteMiddleware($request), $this->middleware);
Arguments
/home/salcinin/domains/eisiskiugimnazija.lt/public_html/public/index.php
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
/*Set locale for carbon human date*/
setlocale(LC_TIME, 'lt_LT.utf8');
Arguments