/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php
! ($expires && Carbon::now()->getTimestamp() > $expires);
}
/**
* Get the URL to a named route.
*
* @param string $name
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
*/
public function route($name, $parameters = [], $absolute = true)
{
if (! is_null($route = $this->routes->getByName($name))) {
return $this->toRoute($route, $parameters, $absolute);
}
throw new RouteNotFoundException("Route [{$name}] not defined.");
}
/**
* Get the URL for a given route instance.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Illuminate\Routing\Exceptions\UrlGenerationException
*/
public function toRoute($route, $parameters, $absolute)
{
return $this->routeUrl()->to(
$route, $this->formatParameters($parameters), $absolute
);
}
/**
Arguments
"Route [dashboard_index] not defined. (View: /var/www/smartsavings.it/resources/views/errors/_errors.blade.php) (View: /var/www/smartsavings.it/resources/views/errors/_errors.blade.php)"
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
ErrorException {#2067
#message: "Route [dashboard_index] not defined. (View: /var/www/smartsavings.it/resources/views/errors/_errors.blade.php)"
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php"
#line: 389
-previous: Symfony\Component\Routing\Exception\RouteNotFoundException {#2066
#message: "Route [dashboard_index] not defined."
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php"
#line: 389
}
#severity: E_ERROR
}
1
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php
! ($expires && Carbon::now()->getTimestamp() > $expires);
}
/**
* Get the URL to a named route.
*
* @param string $name
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
*/
public function route($name, $parameters = [], $absolute = true)
{
if (! is_null($route = $this->routes->getByName($name))) {
return $this->toRoute($route, $parameters, $absolute);
}
throw new RouteNotFoundException("Route [{$name}] not defined.");
}
/**
* Get the URL for a given route instance.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Illuminate\Routing\Exceptions\UrlGenerationException
*/
public function toRoute($route, $parameters, $absolute)
{
return $this->routeUrl()->to(
$route, $this->formatParameters($parameters), $absolute
);
}
/**
Arguments
"Route [dashboard_index] not defined. (View: /var/www/smartsavings.it/resources/views/errors/_errors.blade.php)"
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
Arguments
Symfony\Component\Routing\Exception\RouteNotFoundException {#2066
#message: "Route [dashboard_index] not defined."
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php"
#line: 389
}
3
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php
! ($expires && Carbon::now()->getTimestamp() > $expires);
}
/**
* Get the URL to a named route.
*
* @param string $name
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
*/
public function route($name, $parameters = [], $absolute = true)
{
if (! is_null($route = $this->routes->getByName($name))) {
return $this->toRoute($route, $parameters, $absolute);
}
throw new RouteNotFoundException("Route [{$name}] not defined.");
}
/**
* Get the URL for a given route instance.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Illuminate\Routing\Exceptions\UrlGenerationException
*/
public function toRoute($route, $parameters, $absolute)
{
return $this->routeUrl()->to(
$route, $this->formatParameters($parameters), $absolute
);
}
/**
Arguments
"Route [dashboard_index] not defined."
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
if (func_num_args() === 0) {
return $factory;
}
return $factory->make($content, $status, $headers);
}
}
if (! function_exists('route')) {
/**
* Generate the URL to a named route.
*
* @param array|string $name
* @param mixed $parameters
* @param bool $absolute
* @return string
*/
function route($name, $parameters = [], $absolute = true)
{
return app('url')->route($name, $parameters, $absolute);
}
}
if (! function_exists('secure_asset')) {
/**
* Generate an asset path for the application.
*
* @param string $path
* @return string
*/
function secure_asset($path)
{
return asset($path, true);
}
}
if (! function_exists('secure_url')) {
/**
* Generate a HTTPS url for the application.
*
Arguments
"dashboard_index"
array:1 [
"onboarding" => 0
]
true
/var/www/smartsavings.it/storage/framework/views/6c07d4611303b48cbfba14f02c57ae34cabaae9f.php
<div class="container-fluid mt-5">
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
<div class="card pt-3 mt-5 overflow-hidden surveys-hero" style="background: #E6FBFF; box-shadow: 0px 4px 30px rgba(205, 182, 255, 0.6);">
<div class="row p-0 align-items-center m-0" style="min-height: 358px">
<div class="col-lg-7">
<div class="card-body text-left ">
<h1 class="color-sky">
Ooops!
</h1>
<p>
Qualcosa è andato storto o la pagina desiderata non è al momendo raggiungibile.
</p>
<a class="btn btn-primary btn-violet mt20" href="<?php echo e(route('dashboard_index', ['onboarding' => $onboarding ?? 0])); ?>">
Vai alla dashboard
</a>
</div>
</div>
<div class="col-lg-5 text-right d-block d-md-none d-lg-block pt-lg-4">
<img src="<?php echo e(asset('images/app/dashboard/call-for-ideas.svg')); ?>">
</div>
</div>
</div>
</div>
</div>
</div>
</div><?php /**PATH /var/www/smartsavings.it/resources/views/errors/_errors.blade.php ENDPATH**/ ?>
Arguments
"dashboard_index"
array:1 [
"onboarding" => 0
]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
Arguments
"/var/www/smartsavings.it/storage/framework/views/6c07d4611303b48cbfba14f02c57ae34cabaae9f.php"
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/var/www/smartsavings.it/storage/framework/views/6c07d4611303b48cbfba14f02c57ae34cabaae9f.php"
array:8 [
"__env" => Illuminate\View\Factory {#171}
"app" => Illuminate\Foundation\Application {#4}
"errors" => Illuminate\Support\ViewErrorBag {#2054}
"userAgent" => Jenssegers\Agent\Agent {#2050}
"checkIndexStep2" => 1
"userStepRewardStep" => 0
"obLevel" => 1
"exception" => Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/var/www/smartsavings.it/resources/views/errors/_errors.blade.php"
array:8 [
"__env" => Illuminate\View\Factory {#171}
"app" => Illuminate\Foundation\Application {#4}
"errors" => Illuminate\Support\ViewErrorBag {#2054}
"userAgent" => Jenssegers\Agent\Agent {#2050}
"checkIndexStep2" => 1
"userStepRewardStep" => 0
"obLevel" => 1
"exception" => Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushState();
throw $e;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/var/www/smartsavings.it/storage/framework/views/2893d437f754a48eae5f393a2fee205b9dd98d21.php
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('errors._errors', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/smartsavings.it/resources/views/errors/404.blade.php ENDPATH**/ ?>
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Exception $e) {
$this->handleViewException($e, $obLevel);
} catch (Throwable $e) {
$this->handleViewException(new FatalThrowableError($e), $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
Arguments
"/var/www/smartsavings.it/storage/framework/views/2893d437f754a48eae5f393a2fee205b9dd98d21.php"
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
*
* @throws \Exception
*/
protected function handleViewException(Exception $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
Arguments
"/var/www/smartsavings.it/storage/framework/views/2893d437f754a48eae5f393a2fee205b9dd98d21.php"
array:7 [
"__env" => Illuminate\View\Factory {#171}
"app" => Illuminate\Foundation\Application {#4}
"errors" => Illuminate\Support\ViewErrorBag {#2054}
"userAgent" => Jenssegers\Agent\Agent {#2050}
"checkIndexStep2" => 1
"userStepRewardStep" => 0
"exception" => Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
Arguments
"/var/www/smartsavings.it/resources/views/errors/404.blade.php"
array:7 [
"__env" => Illuminate\View\Factory {#171}
"app" => Illuminate\Foundation\Application {#4}
"errors" => Illuminate\Support\ViewErrorBag {#2054}
"userAgent" => Jenssegers\Agent\Agent {#2050}
"checkIndexStep2" => 1
"userStepRewardStep" => 0
"exception" => Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushState();
throw $e;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Http/Response.php
* @return $this
*/
public function setContent($content)
{
$this->original = $content;
// If the content is "JSONable" we will set the appropriate header and convert
// the content to JSON. This is useful when returning something like models
// from routes that will be automatically transformed to their JSON form.
if ($this->shouldBeJson($content)) {
$this->header('Content-Type', 'application/json');
$content = $this->morphToJson($content);
}
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
}
/**
* Determine if the given content should be turned into JSON.
*
* @param mixed $content
* @return bool
*/
protected function shouldBeJson($content)
{
return $content instanceof Arrayable ||
$content instanceof Jsonable ||
$content instanceof ArrayObject ||
$content instanceof JsonSerializable ||
is_array($content);
/var/www/smartsavings.it/vendor/symfony/http-foundation/Response.php
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
506 => 'Variant Also Negotiates', // RFC2295
507 => 'Insufficient Storage', // RFC4918
508 => 'Loop Detected', // RFC5842
510 => 'Not Extended', // RFC2774
511 => 'Network Authentication Required', // RFC6585
];
/**
* @throws \InvalidArgumentException When the HTTP status code is not valid
*/
public function __construct($content = '', int $status = 200, array $headers = [])
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
}
/**
* Factory method for chainability.
*
* Example:
*
* return Response::create($body, 200)
* ->setSharedMaxAge(300);
*
* @param mixed $content The response content, see setContent()
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @return static
*/
public static function create($content = '', $status = 200, $headers = [])
{
Arguments
Illuminate\View\View {#2063}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
* @param \Illuminate\Routing\Redirector $redirector
* @return void
*/
public function __construct(ViewFactory $view, Redirector $redirector)
{
$this->view = $view;
$this->redirector = $redirector;
}
/**
* Create a new response instance.
*
* @param string $content
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function make($content = '', $status = 200, array $headers = [])
{
return new Response($content, $status, $headers);
}
/**
* Create a new "no content" response.
*
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function noContent($status = 204, array $headers = [])
{
return $this->make('', $status, $headers);
}
/**
* Create a new response for a given view.
*
* @param string $view
* @param array $data
* @param int $status
Arguments
Illuminate\View\View {#2063}
404
[]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function noContent($status = 204, array $headers = [])
{
return $this->make('', $status, $headers);
}
/**
* Create a new response for a given view.
*
* @param string $view
* @param array $data
* @param int $status
* @param array $headers
* @return \Illuminate\Http\Response
*/
public function view($view, $data = [], $status = 200, array $headers = [])
{
return $this->make($this->view->make($view, $data), $status, $headers);
}
/**
* Create a new JSON response instance.
*
* @param mixed $data
* @param int $status
* @param array $headers
* @param int $options
* @return \Illuminate\Http\JsonResponse
*/
public function json($data = [], $status = 200, array $headers = [], $options = 0)
{
return new JsonResponse($data, $status, $headers, $options);
}
/**
* Create a new JSONP response instance.
*
* @param string $callback
Arguments
Illuminate\View\View {#2063}
404
[]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
return (new SymfonyExceptionHandler($debug))->getHtml(
FlattenException::create($e)
);
}
/**
* Render the given HttpException.
*
* @param \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function renderHttpException(HttpExceptionInterface $e)
{
$this->registerErrorViewPaths();
if (view()->exists($view = "errors::{$e->getStatusCode()}")) {
return response()->view($view, [
'errors' => new ViewErrorBag,
'exception' => $e,
], $e->getStatusCode(), $e->getHeaders());
}
return $this->convertExceptionToResponse($e);
}
/**
* Register the error template hint paths.
*
* @return void
*/
protected function registerErrorViewPaths()
{
$paths = collect(config('view.paths'));
View::replaceNamespace('errors', $paths->map(function ($path) {
return "{$path}/errors";
})->push(__DIR__.'/views')->all());
}
/**
Arguments
"errors::404"
array:2 [
"errors" => Illuminate\Support\ViewErrorBag {#2054}
"exception" => Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
]
404
[]
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
/**
* Prepare a response for the given exception.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Exception $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->toIlluminateResponse(
$this->renderHttpException($e), $e
);
}
/**
* Create a Symfony response for the given exception.
*
* @param \Exception $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Exception $e)
{
return SymfonyResponse::create(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
/**
* Get the response content for the given exception.
Arguments
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
{
if (method_exists($e, 'render') && $response = $e->render($request)) {
return Router::toResponse($request, $response);
} elseif ($e instanceof Responsable) {
return $e->toResponse($request);
}
$e = $this->prepareException($e);
if ($e instanceof HttpResponseException) {
return $e->getResponse();
} elseif ($e instanceof AuthenticationException) {
return $this->unauthenticated($request, $e);
} elseif ($e instanceof ValidationException) {
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
* @param \Exception $e
* @return \Exception
*/
protected function prepareException(Exception $e)
{
if ($e instanceof ModelNotFoundException) {
$e = new NotFoundHttpException($e->getMessage(), $e);
} elseif ($e instanceof AuthorizationException) {
$e = new AccessDeniedHttpException($e->getMessage(), $e);
} elseif ($e instanceof TokenMismatchException) {
$e = new HttpException(419, $e->getMessage(), $e);
} elseif ($e instanceof SuspiciousOperationException) {
$e = new NotFoundHttpException('Bad hostname provided.', $e);
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
/var/www/smartsavings.it/app/Exceptions/Handler.php
*/
public function report(Exception $exception)
{
if (app()->bound('sentry') && $this->shouldReport($exception)) {
app('sentry')->captureException($exception);
}
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
if (! $this->container->bound(ExceptionHandler::class) ||
! $passable instanceof Request) {
throw $e;
}
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (method_exists($response, 'withException')) {
$response->withException($e);
}
return $response;
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
if (is_callable($pipe)) {
// If the pipe is an instance of a Closure, we will just call it directly but
// otherwise we'll resolve the pipes out of the container and call it with
// the appropriate method and arguments, returning the results back out.
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#2052
-statusCode: 404
-headers: []
#message: ""
#code: 0
#file: "/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Application.php"
#line: 1011
}
/var/www/smartsavings.it/app/Http/Middleware/InitVariables.php
$step = 11;
}
}
$rewardRequest = UserReward::where('user_id', $user->id)->first();
if( in_array($step, [9, 10, 11]) && !empty($rewardRequest->id) && $rewardRequest->status == 0 ){
$step = 12;
}
if( !empty($rewardRequest->id) && $rewardRequest->status == 1 ){
$step = 13;
}
$userStepRewardStep = $step;
}
View::share('checkIndexStep2', $checkIndexStep2);
View::share('userStepRewardStep', $userStepRewardStep ?? 0);
return $next($request);
}
public function initAgent()
{
$agent = new Agent();
View::share('userAgent', $agent);
}
public function initSeo()
{
seo()->fill([
'title' => sessionConfig()->store->seo->title ?? sessionConfig()->store->name ?? '',
'site_name' => sessionConfig()->store->application_name ?? Config::get('site.name'),
'description' => sessionConfig()->store->seo->description ?? sessionConfig()->store->description ?? '',
'image' => asset(sessionConfig()->store->seo->image ?? Config::get('site.image') ?? ''),
'keywords' => sessionConfig()->store->seo->keyword ?? '',
'canonical' => Request::url(),
'url' => Request::url()
]);
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#2037 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function handle($request, Closure $next)
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
throw new TokenMismatchException('CSRF token mismatch.');
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function isReading($request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#2039 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
*/
public function __construct(Registrar $router)
{
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#2040 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the current session has an "errors" variable bound to it, we will share
// its value with all view instances so the views can easily access errors
// without having to bind. An empty bag is set when there aren't errors.
$this->view->share(
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#2041 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (! $this->sessionConfigured()) {
return $next($request);
}
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
$this->saveSession($request);
return $response;
}
/**
* Start the session for the given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Contracts\Session\Session
*/
protected function startSession(Request $request)
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#2042 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
* Create a new CookieQueue instance.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies
* @return void
*/
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#2043 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*
Arguments
Closure($request) {#1720 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Routing\Route $route
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
Arguments
Illuminate\Routing\Route {#670}
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance(Route::class, $route);
return $route;
}
/**
* Return the response for the given route.
*
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Illuminate\Routing\Route {#670}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @return \Symfony\Component\HttpFoundation\Response
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
if (is_callable($pipe)) {
// If the pipe is an instance of a Closure, we will just call it directly but
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php
public function handle(Request $request, Closure $next)
{
$container = Container::getInstance();
if ($container->bound(HubInterface::class)) {
/** @var \Sentry\State\HubInterface $sentry */
$sentry = $container->make(HubInterface::class);
$client = $sentry->getClient();
if ($client !== null && $client->getOptions()->shouldSendDefaultPii()) {
$sentry->configureScope(static function (Scope $scope) use ($request): void {
$scope->setUser([
'ip_address' => $request->ip(),
]);
});
}
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#382 …4}
/var/www/smartsavings.it/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php
*
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$container = Container::getInstance();
if ($container->bound(HubInterface::class)) {
try {
$container->instance(
LaravelRequestFetcher::CONTAINER_PSR7_INSTANCE_KEY,
$container->make(ServerRequestInterface::class)
);
} catch (Throwable $e) {
// Ignore problems getting the PSR-7 server request instance here
// In the Laravel request fetcher we have other fallbacks for that
}
}
return $next($request);
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#40 …4}
/var/www/smartsavings.it/vendor/proengsoft/laravel-jsvalidation/src/RemoteValidationMiddleware.php
public function __construct(ValidationFactory $validator, Config $config)
{
$this->factory = $validator;
$this->field = $config->get('jsvalidation.remote_validation_field');
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
if ($request->has($this->field)) {
$this->wrapValidator();
}
return $next($request);
}
/**
* Wraps Validator resolver with RemoteValidator resolver.
*
* @return void
*/
protected function wrapValidator()
{
$resolver = new Resolver($this->factory);
$this->factory->resolver($resolver->resolver($this->field));
$this->factory->extend(RemoteValidator::EXTENSION_NAME, $resolver->validatorClosure());
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#710 …4}
/var/www/smartsavings.it/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php
* @param LaravelDebugbar $debugbar
*/
public function __construct(Container $container, LaravelDebugbar $debugbar)
{
$this->container = $container;
$this->debugbar = $debugbar;
$this->except = config('debugbar.except') ?: [];
}
/**
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
return $next($request);
}
$this->debugbar->boot();
try {
/** @var \Illuminate\Http\Response $response */
$response = $next($request);
} catch (Exception $e) {
$response = $this->handleException($request, $e);
} catch (Error $error) {
$e = new FatalThrowableError($error);
$response = $this->handleException($request, $e);
}
// Modify the response to add the Debugbar
$this->debugbar->modifyResponse($request, $response);
return $response;
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#711 …4}
/var/www/smartsavings.it/app/Http/Middleware/XFrameOptions.php
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request as HttpRequest;
use Closure;
/**
* Class XFrameOptions
* Avoid Clickjacking see https://www.owasp.org/index.php/Clickjacking
* @package App\Http\Middleware
*/
class XFrameOptions
{
public function handle(HttpRequest $request, Closure $next)
{
$response = $next($request);
$response->headers->set('X-Frame-Options', 'allow-from https://www.community-braviarisparmiare.it');
$response->headers->set('Content-Security-Policy', 'frame-ancestors https://www.community-braviarisparmiare.it');
return $response;
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#712 …4}
/var/www/smartsavings.it/app/Http/Middleware/Language.php
// fetch locales list
$this->locales = Config::get('app.locales');
// fetch locales keys
$this->localeKeys = array_keys(Config::get('app.locales'));
// get the route segments
$routeFirstSegment = Request::segment(1);
// check if it start with something different than "_"
if ( is_null($routeFirstSegment) || ($routeFirstSegment[0] != '_' && $routeFirstSegment != 'api') ) {
// manage locale and redirects
$locale = $this->manageLocale();
// if manageLocale didn't exit before this, then we can be sure that $locale exists
$this->initSessionConfig($request, $locale);
}
return $next($request);
}
/**
* @return string This function return the store locale to use
*/
protected function manageLocale()
{
// get the route segments
$routeFirstSegment = Request::segment(1);
// Make sure current locale exists and is associated to current store domain.
$matchingStores = $this->storesByHost();
// so o the locale is the route first argument
$locale = $routeFirstSegment;
if (empty($matchingStores)) { // no store
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#713 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
* Disable encryption for the given cookie name(s).
*
* @param string|array $name
* @return void
*/
public function disableFor($name)
{
$this->except = array_merge($this->except, (array) $name);
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Request
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $cookie) {
if ($this->isDisabled($key)) {
continue;
}
try {
$request->cookies->set($key, $this->decryptCookie($key, $cookie));
} catch (DecryptException $e) {
$request->cookies->set($key, null);
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#714 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#715 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
namespace Illuminate\Foundation\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
class TransformsRequest
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} elseif ($request->request !== $request->query) {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#716 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Http\Exceptions\PostTooLargeException
*/
public function handle($request, Closure $next)
{
$max = $this->getPostMaxSize();
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
return $next($request);
}
/**
* Determine the server 'post_max_size' as bytes.
*
* @return int
*/
protected function getPostMaxSize()
{
if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
return (int) $postMaxSize;
}
$metric = strtoupper(substr($postMaxSize, -1));
$postMaxSize = (int) $postMaxSize;
switch ($metric) {
case 'K':
return $postMaxSize * 1024;
case 'M':
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#717 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
return $next($request);
}
if ($this->inExceptArray($request)) {
return $next($request);
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function inExceptArray($request)
{
foreach ($this->except as $except) {
if ($except !== '/') {
$except = trim($except, '/');
}
if ($request->fullUrlIs($except) || $request->is($except)) {
return true;
}
}
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#718 …4}
/var/www/smartsavings.it/vendor/fideloper/proxy/src/TrustProxies.php
{
$this->config = $config;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
* @param \Illuminate\Http\Request $request
*/
protected function setTrustedProxyIpAddresses(Request $request)
{
$trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
// Trust any IP address that calls us
// `**` for backwards compatibility, but is deprecated
if ($trustedIps === '*' || $trustedIps === '**') {
return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
}
// Support IPs addresses separated by comma
$trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
[$name, $parameters] = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure($passable) {#719 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
* @return mixed
*/
public function thenReturn()
{
return $this->then(function ($passable) {
return $passable;
});
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
Arguments
Closure($request) {#709 …4}
/var/www/smartsavings.it/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new Events\RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/smartsavings.it/public/index.php
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Arguments
Illuminate\Http\Request {#52
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#1699 …4}
#routeResolver: Closure() {#1722 …4}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#54}
+request: Symfony\Component\HttpFoundation\ParameterBag {#60}
+query: Symfony\Component\HttpFoundation\ParameterBag {#60}
+server: Symfony\Component\HttpFoundation\ServerBag {#56}
+files: Symfony\Component\HttpFoundation\FileBag {#57}
+cookies: Symfony\Component\HttpFoundation\ParameterBag {#55}
+headers: Symfony\Component\HttpFoundation\HeaderBag {#58}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/it/forum/categories/Gestione%20spese"
#requestUri: "/it/forum/categories/Gestione%20spese?sort=hot"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Illuminate\Session\Store {#1673}
#locale: null
#defaultLocale: "en"
-preferredFormat: null
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}