GuzzleHttp \ Exception \ ClientException (404)
Client error: `GET https://api-asya.weebox.ch/asya/v2/public/shop/catalog/epl0008` resulted in a `404 Not Found` response: {"message":"Not Found!"} GuzzleHttp\Exception\ClientException thrown with message "Client error: `GET https://api-asya.weebox.ch/asya/v2/public/shop/catalog/epl0008` resulted in a `404 Not Found` response: {"message":"Not Found!"} " Stacktrace: #54 GuzzleHttp\Exception\ClientException in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 #53 GuzzleHttp\Exception\RequestException:create in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Middleware.php:69 #52 GuzzleHttp\Middleware:GuzzleHttp\{closure} in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:204 #51 GuzzleHttp\Promise\Promise:callHandler in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:153 #50 GuzzleHttp\Promise\Promise:GuzzleHttp\Promise\{closure} in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/TaskQueue.php:48 #49 GuzzleHttp\Promise\TaskQueue:run in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:248 #48 GuzzleHttp\Promise\Promise:invokeWaitFn in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:224 #47 GuzzleHttp\Promise\Promise:waitIfPending in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:269 #46 GuzzleHttp\Promise\Promise:invokeWaitList in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:226 #45 GuzzleHttp\Promise\Promise:waitIfPending in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php:62 #44 GuzzleHttp\Promise\Promise:wait in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Client.php:187 #43 GuzzleHttp\Client:request in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/classes/Entities/Product.php:90 #42 Product:get in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/weebox.php:919 #41 Grav\Plugin\WeeboxPlugin:loadPageProductDetail in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/weebox.php:664 #40 Grav\Plugin\WeeboxPlugin:onPagesInitialized in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/vendor/symfony/event-dispatcher/EventDispatcher.php:264 #39 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/vendor/symfony/event-dispatcher/EventDispatcher.php:239 #38 Symfony\Component\EventDispatcher\EventDispatcher:callListeners in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/vendor/symfony/event-dispatcher/EventDispatcher.php:73 #37 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Grav.php:597 #36 Grav\Common\Grav:fireEvent in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/PagesProcessor.php:53 #35 Grav\Common\Processors\PagesProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #34 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #33 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/TwigProcessor.php:38 #32 Grav\Common\Processors\TwigProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #31 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #30 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/AssetsProcessor.php:39 #29 Grav\Common\Processors\AssetsProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #28 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #27 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/SchedulerProcessor.php:40 #26 Grav\Common\Processors\SchedulerProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #25 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #24 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/BackupsProcessor.php:39 #23 Grav\Common\Processors\BackupsProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #22 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #21 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/TasksProcessor.php:69 #20 Grav\Common\Processors\TasksProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #19 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #18 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/RequestProcessor.php:64 #17 Grav\Common\Processors\RequestProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #16 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #15 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/ThemesProcessor.php:38 #14 Grav\Common\Processors\ThemesProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #13 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #12 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/PluginsProcessor.php:39 #11 Grav\Common\Processors\PluginsProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #10 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #9 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/InitializeProcessor.php:130 #8 Grav\Common\Processors\InitializeProcessor:Grav\Common\Processors\{closure} in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Debugger.php:546 #7 Grav\Common\Debugger:profile in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/InitializeProcessor.php:131 #6 Grav\Common\Processors\InitializeProcessor:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #5 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #4 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php:40 #3 Grav\Framework\RequestHandler\Middlewares\MultipartRequestSupport:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50 #2 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62 #1 Grav\Framework\RequestHandler\RequestHandler:handle in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Grav.php:312 #0 Grav\Common\Grav:process in /home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/index.php:47
Stack frames (55)
54
GuzzleHttp\Exception\ClientException
/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php113
53
GuzzleHttp\Exception\RequestException create
/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Middleware.php69
52
GuzzleHttp\Middleware GuzzleHttp\{closure}
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php204
51
GuzzleHttp\Promise\Promise callHandler
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php153
50
GuzzleHttp\Promise\Promise GuzzleHttp\Promise\{closure}
/user/plugins/weebox/vendor/guzzlehttp/promises/src/TaskQueue.php48
49
GuzzleHttp\Promise\TaskQueue run
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php248
48
GuzzleHttp\Promise\Promise invokeWaitFn
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php224
47
GuzzleHttp\Promise\Promise waitIfPending
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php269
46
GuzzleHttp\Promise\Promise invokeWaitList
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php226
45
GuzzleHttp\Promise\Promise waitIfPending
/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php62
44
GuzzleHttp\Promise\Promise wait
/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Client.php187
43
GuzzleHttp\Client request
/user/plugins/weebox/classes/Entities/Product.php90
42
Product get
/user/plugins/weebox/weebox.php919
41
Grav\Plugin\WeeboxPlugin loadPageProductDetail
/user/plugins/weebox/weebox.php664
40
Grav\Plugin\WeeboxPlugin onPagesInitialized
/vendor/symfony/event-dispatcher/EventDispatcher.php264
39
Symfony\Component\EventDispatcher\EventDispatcher doDispatch
/vendor/symfony/event-dispatcher/EventDispatcher.php239
38
Symfony\Component\EventDispatcher\EventDispatcher callListeners
/vendor/symfony/event-dispatcher/EventDispatcher.php73
37
Symfony\Component\EventDispatcher\EventDispatcher dispatch
/system/src/Grav/Common/Grav.php597
36
Grav\Common\Grav fireEvent
/system/src/Grav/Common/Processors/PagesProcessor.php53
35
Grav\Common\Processors\PagesProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
34
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
33
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/TwigProcessor.php38
32
Grav\Common\Processors\TwigProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
31
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
30
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/AssetsProcessor.php39
29
Grav\Common\Processors\AssetsProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
28
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
27
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/SchedulerProcessor.php40
26
Grav\Common\Processors\SchedulerProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
25
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
24
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/BackupsProcessor.php39
23
Grav\Common\Processors\BackupsProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
22
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
21
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/TasksProcessor.php69
20
Grav\Common\Processors\TasksProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
19
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
18
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/RequestProcessor.php64
17
Grav\Common\Processors\RequestProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
16
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
15
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/ThemesProcessor.php38
14
Grav\Common\Processors\ThemesProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
13
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
12
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/PluginsProcessor.php39
11
Grav\Common\Processors\PluginsProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
10
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
9
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Processors/InitializeProcessor.php130
8
Grav\Common\Processors\InitializeProcessor Grav\Common\Processors\{closure}
/system/src/Grav/Common/Debugger.php546
7
Grav\Common\Debugger profile
/system/src/Grav/Common/Processors/InitializeProcessor.php131
6
Grav\Common\Processors\InitializeProcessor process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
5
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
4
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php40
3
Grav\Framework\RequestHandler\Middlewares\MultipartRequestSupport process
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php50
2
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php62
1
Grav\Framework\RequestHandler\RequestHandler handle
/system/src/Grav/Common/Grav.php312
0
Grav\Common\Grav process
/index.php47
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
        $uri = static::obfuscateUri($uri);
 
        // Client Error: `GET /` resulted in a `404 Not Found` response:
        // <html> ... (truncated)
        $message = \sprintf(
            '%s: `%s %s` resulted in a `%s %s` response',
            $label,
            $request->getMethod(),
            $uri->__toString(),
            $response->getStatusCode(),
            $response->getReasonPhrase()
        );
 
        $summary = ($bodySummarizer ?? new BodySummarizer())->summarize($response);
 
        if ($summary !== null) {
            $message .= ":\n{$summary}\n";
        }
 
        return new $className($message, $request, $response, $previous, $handlerContext);
    }
 
    /**
     * Obfuscates URI if there is a username and a password present
     */
    private static function obfuscateUri(UriInterface $uri): UriInterface
    {
        $userInfo = $uri->getUserInfo();
 
        if (false !== ($pos = \strpos($userInfo, ':'))) {
            return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***');
        }
 
        return $uri;
    }
 
    /**
     * Get the request that caused the exception
     */
    public function getRequest(): RequestInterface
Arguments
  1. """
    Client error: `GET https://api-asya.weebox.ch/asya/v2/public/shop/catalog/epl0008` resulted in a `404 Not Found` response:\n
    {"message":"Not Found!"}\n
    """
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Middleware.php
     * "http_errors" request option is set to true.
     *
     * @param BodySummarizerInterface|null $bodySummarizer The body summarizer to use in exception messages.
     *
     * @return callable(callable): callable Returns a function that accepts the next handler.
     */
    public static function httpErrors(BodySummarizerInterface $bodySummarizer = null): callable
    {
        return static function (callable $handler) use ($bodySummarizer): callable {
            return static function ($request, array $options) use ($handler, $bodySummarizer) {
                if (empty($options['http_errors'])) {
                    return $handler($request, $options);
                }
                return $handler($request, $options)->then(
                    static function (ResponseInterface $response) use ($request, $bodySummarizer) {
                        $code = $response->getStatusCode();
                        if ($code < 400) {
                            return $response;
                        }
                        throw RequestException::create($request, $response, null, [], $bodySummarizer);
                    }
                );
            };
        };
    }
 
    /**
     * Middleware that pushes history data to an ArrayAccess container.
     *
     * @param array|\ArrayAccess<int, array> $container Container to hold the history (by reference).
     *
     * @return callable(callable): callable Returns a function that accepts the next handler.
     *
     * @throws \InvalidArgumentException if container is not an array or ArrayAccess.
     */
    public static function history(&$container): callable
    {
        if (!\is_array($container) && !$container instanceof \ArrayAccess) {
            throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess');
        }
Arguments
  1. GuzzleHttp\Psr7\Request {#1306}
    
  2. GuzzleHttp\Psr7\Response {#1310}
    
  3. null
    
  4. []
    
  5. null
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
        /** @var PromiseInterface $promise */
        $promise = $handler[0];
 
        // The promise may have been cancelled or resolved before placing
        // this thunk in the queue.
        if (Is::settled($promise)) {
            return;
        }
 
        try {
            if (isset($handler[$index])) {
                /*
                 * If $f throws an exception, then $handler will be in the exception
                 * stack trace. Since $handler contains a reference to the callable
                 * itself we get a circular reference. We clear the $handler
                 * here to avoid that memory leak.
                 */
                $f = $handler[$index];
                unset($handler);
                $promise->resolve($f($value));
            } elseif ($index === 1) {
                // Forward resolution values as-is.
                $promise->resolve($value);
            } else {
                // Forward rejections down the chain.
                $promise->reject($value);
            }
        } catch (\Throwable $reason) {
            $promise->reject($reason);
        } catch (\Exception $reason) {
            $promise->reject($reason);
        }
    }
 
    private function waitIfPending()
    {
        if ($this->state !== self::PENDING) {
            return;
        } elseif ($this->waitFn) {
            $this->invokeWaitFn();
Arguments
  1. GuzzleHttp\Psr7\Response {#1310}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
        // Clear out the state of the promise but stash the handlers.
        $this->state = $state;
        $this->result = $value;
        $handlers = $this->handlers;
        $this->handlers = null;
        $this->waitList = $this->waitFn = null;
        $this->cancelFn = null;
 
        if (!$handlers) {
            return;
        }
 
        // If the value was not a settled promise or a thenable, then resolve
        // it in the task queue using the correct ID.
        if (!is_object($value) || !method_exists($value, 'then')) {
            $id = $state === self::FULFILLED ? 1 : 2;
            // It's a success, so resolve the handlers in the queue.
            Utils::queue()->add(static function () use ($id, $value, $handlers) {
                foreach ($handlers as $handler) {
                    self::callHandler($id, $value, $handler);
                }
            });
        } elseif ($value instanceof Promise && Is::pending($value)) {
            // We can just merge our handlers onto the next promise.
            $value->handlers = array_merge($value->handlers, $handlers);
        } else {
            // Resolve the handlers when the forwarded promise is resolved.
            $value->then(
                static function ($value) use ($handlers) {
                    foreach ($handlers as $handler) {
                        self::callHandler(1, $value, $handler);
                    }
                },
                static function ($reason) use ($handlers) {
                    foreach ($handlers as $handler) {
                        self::callHandler(2, $reason, $handler);
                    }
                }
            );
        }
Arguments
  1. 1
    
  2. GuzzleHttp\Psr7\Response {#1310}
    
  3. null
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/TaskQueue.php
                }
            });
        }
    }
 
    public function isEmpty()
    {
        return !$this->queue;
    }
 
    public function add(callable $task)
    {
        $this->queue[] = $task;
    }
 
    public function run()
    {
        while ($task = array_shift($this->queue)) {
            /** @var callable $task */
            $task();
        }
    }
 
    /**
     * The task queue will be run and exhausted by default when the process
     * exits IFF the exit is not the result of a PHP E_ERROR error.
     *
     * You can disable running the automatic shutdown of the queue by calling
     * this function. If you disable the task queue shutdown process, then you
     * MUST either run the task queue (as a result of running your event loop
     * or manually using the run() method) or wait on each outstanding promise.
     *
     * Note: This shutdown will occur before any destructors are triggered.
     */
    public function disableShutdown()
    {
        $this->enableShutdown = false;
    }
}
 
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
            $this->reject('Cannot wait on a promise that has '
                . 'no internal wait function. You must provide a wait '
                . 'function when constructing the promise to be able to '
                . 'wait on a promise.');
        }
 
        Utils::queue()->run();
 
        /** @psalm-suppress RedundantCondition */
        if ($this->state === self::PENDING) {
            $this->reject('Invoking the wait callback did not resolve the promise');
        }
    }
 
    private function invokeWaitFn()
    {
        try {
            $wfn = $this->waitFn;
            $this->waitFn = null;
            $wfn(true);
        } catch (\Exception $reason) {
            if ($this->state === self::PENDING) {
                // The promise has not been resolved yet, so reject the promise
                // with the exception.
                $this->reject($reason);
            } else {
                // The promise was already resolved, so there's a problem in
                // the application.
                throw $reason;
            }
        }
    }
 
    private function invokeWaitList()
    {
        $waitList = $this->waitList;
        $this->waitList = null;
 
        foreach ($waitList as $result) {
            do {
Arguments
  1. true
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
            } elseif ($index === 1) {
                // Forward resolution values as-is.
                $promise->resolve($value);
            } else {
                // Forward rejections down the chain.
                $promise->reject($value);
            }
        } catch (\Throwable $reason) {
            $promise->reject($reason);
        } catch (\Exception $reason) {
            $promise->reject($reason);
        }
    }
 
    private function waitIfPending()
    {
        if ($this->state !== self::PENDING) {
            return;
        } elseif ($this->waitFn) {
            $this->invokeWaitFn();
        } elseif ($this->waitList) {
            $this->invokeWaitList();
        } else {
            // If there's no wait function, then reject the promise.
            $this->reject('Cannot wait on a promise that has '
                . 'no internal wait function. You must provide a wait '
                . 'function when constructing the promise to be able to '
                . 'wait on a promise.');
        }
 
        Utils::queue()->run();
 
        /** @psalm-suppress RedundantCondition */
        if ($this->state === self::PENDING) {
            $this->reject('Invoking the wait callback did not resolve the promise');
        }
    }
 
    private function invokeWaitFn()
    {
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
            if ($this->state === self::PENDING) {
                // The promise has not been resolved yet, so reject the promise
                // with the exception.
                $this->reject($reason);
            } else {
                // The promise was already resolved, so there's a problem in
                // the application.
                throw $reason;
            }
        }
    }
 
    private function invokeWaitList()
    {
        $waitList = $this->waitList;
        $this->waitList = null;
 
        foreach ($waitList as $result) {
            do {
                $result->waitIfPending();
                $result = $result->result;
            } while ($result instanceof Promise);
 
            if ($result instanceof PromiseInterface) {
                $result->wait(false);
            }
        }
    }
}
 
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
                $promise->resolve($value);
            } else {
                // Forward rejections down the chain.
                $promise->reject($value);
            }
        } catch (\Throwable $reason) {
            $promise->reject($reason);
        } catch (\Exception $reason) {
            $promise->reject($reason);
        }
    }
 
    private function waitIfPending()
    {
        if ($this->state !== self::PENDING) {
            return;
        } elseif ($this->waitFn) {
            $this->invokeWaitFn();
        } elseif ($this->waitList) {
            $this->invokeWaitList();
        } else {
            // If there's no wait function, then reject the promise.
            $this->reject('Cannot wait on a promise that has '
                . 'no internal wait function. You must provide a wait '
                . 'function when constructing the promise to be able to '
                . 'wait on a promise.');
        }
 
        Utils::queue()->run();
 
        /** @psalm-suppress RedundantCondition */
        if ($this->state === self::PENDING) {
            $this->reject('Invoking the wait callback did not resolve the promise');
        }
    }
 
    private function invokeWaitFn()
    {
        try {
            $wfn = $this->waitFn;
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/promises/src/Promise.php
        // Return a fulfilled promise and immediately invoke any callbacks.
        if ($this->state === self::FULFILLED) {
            $promise = Create::promiseFor($this->result);
            return $onFulfilled ? $promise->then($onFulfilled) : $promise;
        }
 
        // It's either cancelled or rejected, so return a rejected promise
        // and immediately invoke any callbacks.
        $rejection = Create::rejectionFor($this->result);
        return $onRejected ? $rejection->then(null, $onRejected) : $rejection;
    }
 
    public function otherwise(callable $onRejected)
    {
        return $this->then(null, $onRejected);
    }
 
    public function wait($unwrap = true)
    {
        $this->waitIfPending();
 
        if ($this->result instanceof PromiseInterface) {
            return $this->result->wait($unwrap);
        }
        if ($unwrap) {
            if ($this->state === self::FULFILLED) {
                return $this->result;
            }
            // It's rejected so "unwrap" and throw an exception.
            throw Create::exceptionFor($this->result);
        }
    }
 
    public function getState()
    {
        return $this->state;
    }
 
    public function cancel()
    {
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/vendor/guzzlehttp/guzzle/src/Client.php
        return $this->transfer($request, $options);
    }
 
    /**
     * Create and send an HTTP request.
     *
     * Use an absolute path to override the base path of the client, or a
     * relative path to append to the base path of the client. The URL can
     * contain the query string as well.
     *
     * @param string              $method  HTTP method.
     * @param string|UriInterface $uri     URI object or string.
     * @param array               $options Request options to apply. See \GuzzleHttp\RequestOptions.
     *
     * @throws GuzzleException
     */
    public function request(string $method, $uri = '', array $options = []): ResponseInterface
    {
        $options[RequestOptions::SYNCHRONOUS] = true;
        return $this->requestAsync($method, $uri, $options)->wait();
    }
 
    /**
     * Get a client configuration option.
     *
     * These options include default request options of the client, a "handler"
     * (if utilized by the concrete client), and a "base_uri" if utilized by
     * the concrete client.
     *
     * @param string|null $option The config option to retrieve.
     *
     * @return mixed
     *
     * @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0.
     */
    public function getConfig(?string $option = null)
    {
        return $option === null
            ? $this->config
            : ($this->config[$option] ?? null);
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/classes/Entities/Product.php
            'attributes' => [
                'attributes' => $filters
            ]
        ]);
        $response = $this->api->request('POST', $this->resource . '/listing', [
            'form_params' => [
                'filters' => $filters,
                'paginate_all' => $paginate_all
            ]
        ]);
        return json_decode($response->getBody());
    }
 
    /*
     * Get product by id
     */
    public function get($id)
    {
        //echo $this->resource . '/' . $id;
        $response = $this->api->request('GET', $this->resource . '/' . $id);
        return json_decode($response->getBody());
    }
 
    /*
     * Get product by id
     */
    public function all()
    {
        $response = $this->api->request('GET', $this->resource . '/all');
        return json_decode($response->getBody());
 
        /*
        try {
            $response = $this->api->request('GET', $this->resource . '/all');
            return json_decode($response->getBody());
        } catch(\GuzzleHttp\Exception\RequestException $ex) {
            echo "<pre>";
            print_r(json_decode($ex->getResponse()->getBody()));
            exit();
        }*/
Arguments
  1. "GET"
    
  2. "shop/catalog/epl0008"
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/weebox.php
            'status'    => 'error',
            'code'      => 500,
            'message'   => $error->message,
            'errors'    => $error
            ]);
        }
        exit();
 
    }
 
    public function loadPageProductDetail()
    {
 
        preg_match("#[/]?".$this->grav['config']->get("plugins.weebox.slug_catalog_product")."/(([a-zA-Z0-9\-\_]+)--([a-zA-Z0-9]+))[/]?#i", $this->grav['uri']->path(), $matches);
 
        $url = $matches[1] ?? null;
        $id = $matches[3] ?? null;
        $fromCatId = $_GET['cat'] ?? null;
 
        $product = $this->weebox->product->get( $id );
        $product = $product->data ?? null;
 
/*
        echo "<pre>";
        print_r($product);
        echo "</pre>";
        exit();
*/
 
        $url = $this->grav['config']->get("plugins.weebox.slug_catalog_product") . '/' . $url;
        $filename = 'catalog-product.md';
        $page = $this->addPage($url, $filename);
 
        $category = (object) [
            'id' => null,
            'name' => null,
            'description' => null
        ];
 
        if( $fromCatId )
Arguments
  1. "epl0008"
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/user/plugins/weebox/weebox.php
                'method' => "loadPageProcessing"
            ],
            'slug_checkout_order_status' => [
                'slug' => 'slug_checkout',
                'regex' => "#^/?__PAGE__\/([\-\_\w-]+)[\/]([\w-]+)[\/]([\w-]+)[\/]?$#i",
                'method' => "loadPageCheckoutStatus"
            ],
            'slug_api' => [
                'slug' => 'slug_api',
                'regex' => "#^/?__PAGE__/(.*)$#i",
                'method' => "loadApi"
            ]
        ];
 
 
        foreach($pages as $key => $value)
        {
            $regex = str_replace('__PAGE__', $this->grav['config']->get("plugins.weebox." . $value['slug']), $value['regex']);
            if( preg_match($regex, $this->grav['uri']->path()) ){
                $this->{$value['method']}();
            }
        }
 
        $this->grav['twig']->twig_vars['breadcrumb'] = $this->breadcrumb->get();
 
    }
 
    public function loadPageBrand()
    {
 
        preg_match("#[/]?".$this->grav['config']->get("plugins.weebox.slug_brand")."/([a-zA-Z0-9\-\_]+)[/]?#i", $this->grav['uri']->path(), $matches);
 
        $url = $matches[1] ?? null;
        $urlArray = explode('--', $url);
        $slug = $urlArray[0];
        $brand_id = $urlArray[1] ?? null;
 
        $brand = $this->weebox->brand->get( $brand_id ?? $slug );
        $brand = $brand->data ?? null;
 
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/vendor/symfony/event-dispatcher/EventDispatcher.php
 
        foreach ($listeners as $listener) {
            if ($stoppable && $event->isPropagationStopped()) {
                break;
            }
            // @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
            $listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
        }
    }
 
    /**
     * @deprecated since Symfony 4.3, use callListeners() instead
     */
    protected function doDispatch($listeners, $eventName, Event $event)
    {
        foreach ($listeners as $listener) {
            if ($event->isPropagationStopped()) {
                break;
            }
            $listener($event, $eventName, $this);
        }
    }
 
    /**
     * Sorts the internal list of listeners for the given event by priority.
     */
    private function sortListeners(string $eventName)
    {
        krsort($this->listeners[$eventName]);
        $this->sorted[$eventName] = [];
 
        foreach ($this->listeners[$eventName] as &$listeners) {
            foreach ($listeners as $k => &$listener) {
                if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
                    $listener[0] = $listener[0]();
                    $listener[1] = $listener[1] ?? '__invoke';
                }
                $this->sorted[$eventName][] = $listener;
            }
        }
Arguments
  1. RocketTheme\Toolbox\Event\Event {#370}
    
  2. "onPagesInitialized"
    
  3. Symfony\Component\EventDispatcher\EventDispatcher {#117
      -listeners: array:58 [
        "onPluginsInitialized" => array:8 [
          100002 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "autoload"
            ]
          ]
          100001 => array:4 [
            0 => array:2 [
              0 => Grav\Plugin\LangSwitcherPlugin {#100}
              1 => "autoload"
            ]
            1 => array:2 [
              0 => Grav\Plugin\MarkdownNoticesPlugin {#102}
              1 => "autoload"
            ]
            2 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onPluginsInitialized"
            ]
            3 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "autoload"
            ]
          ]
          100000 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "setup"
            ]
            1 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "autoload"
            ]
          ]
          10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "initializeSession"
            ]
          ]
          1001 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "onPluginsInitialized"
            ]
          ]
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "initializeLogin"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onPluginsInitialized"
            ]
          ]
          0 => array:6 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#94}
              1 => "onPluginsInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onPluginsInitialized"
            ]
            2 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onPluginsInitialized"
            ]
            3 => array:2 [
              0 => Grav\Plugin\LangSwitcherPlugin {#100}
              1 => "onPluginsInitialized"
            ]
            4 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onPluginsInitialized"
            ]
            5 => array:2 [
              0 => Grav\Plugin\WeeboxPlugin {#106}
              1 => "onPluginsInitialized"
            ]
          ]
        ]
        "onRequestHandlerInit" => array:1 [
          100000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "onRequestHandlerInit"
            ]
          ]
        ]
        "onFormRegisterTypes" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "onFormRegisterTypes"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onFormRegisterTypes"
            ]
          ]
        ]
        "onPageInitialized" => array:3 [
          0 => array:3 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "onPageInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "authorizePage"
            ]
            2 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onPageInitialized"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "authorizeLoginPage"
            ]
          ]
          10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "authorizePage"
            ]
          ]
        ]
        "onShutdown" => array:1 [
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "onShutdown"
            ]
          ]
        ]
        "Grav\Events\PermissionsRegisterEvent" => array:2 [
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\AdminPlugin {#95}
              1 => "onRegisterPermissions"
            ]
          ]
          100 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onRegisterPermissions"
            ]
          ]
        ]
        "onFormProcessed" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#94}
              1 => "onFormProcessed"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onFormProcessed"
            ]
          ]
        ]
        "onTwigTemplatePaths" => array:2 [
          0 => array:8 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#94}
              1 => "onTwigTemplatePaths"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onTwigTemplatePaths"
            ]
            2 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onTwigTemplatePaths"
            ]
            3 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onTwigTemplatePaths"
            ]
            4 => array:2 [
              0 => Grav\Plugin\WeeboxPlugin {#106}
              1 => "onTwigTemplatePaths"
            ]
            5 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onTwigTemplatePaths"
            ]
            6 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onTwigTemplatePaths"
            ]
            7 => array:2 [
              0 => Grav\Plugin\LangSwitcherPlugin {#100}
              1 => "onTwigTemplatePaths"
            ]
          ]
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#97}
              1 => "onTwigTemplatePaths"
            ]
          ]
        ]
        "onSchedulerInitialized" => array:1 [
          0 => array:3 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#94}
              1 => "onSchedulerInitialized"
            ]
            1 => array:2 [
              0 => Grav\Common\Cache {#165}
              1 => "onSchedulerInitialized"
            ]
            2 => array:2 [
              0 => Grav\Common\Backup\Backups {#261}
              1 => "onSchedulerInitialized"
            ]
          ]
        ]
        "onAdminSave" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\EmailPlugin {#94}
              1 => "onAdminSave"
            ]
          ]
        ]
        "onCliInitialize" => array:2 [
          100000 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#97}
              1 => "autoload"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "autoload"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "initializeFlex"
            ]
          ]
        ]
        "onPageNotFound" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#97}
              1 => "onPageNotFound"
            ]
          ]
        ]
        "onGetPageTemplates" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#97}
              1 => "onGetPageTemplates"
            ]
          ]
        ]
        "onDisplayErrorPage.404" => array:1 [
          -1 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ErrorPlugin {#97}
              1 => "onDisplayErrorPage404"
            ]
          ]
        ]
        "Grav\Events\PluginsLoadedEvent" => array:1 [
          10 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "initializeFlex"
            ]
            1 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onPluginsLoaded"
            ]
          ]
        ]
        "Grav\Events\FlexRegisterEvent" => array:1 [
          100 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onRegisterFlex"
            ]
          ]
        ]
        "onTwigExtensions" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onTwigExtensions"
            ]
            1 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onTwigExtensions"
            ]
          ]
        ]
        "Grav\Events\SessionStartEvent" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onSessionStart"
            ]
          ]
        ]
        "Grav\Events\BeforeSessionStartEvent" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onBeforeSessionStart"
            ]
          ]
        ]
        "Grav\Plugin\Login\Events\PageAuthorizeEvent" => array:1 [
          -10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onPageAuthorizeEvent"
            ]
          ]
        ]
        "onTask.login.login" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.twofa" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.twofa_cancel" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.forgot" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.logout" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.reset" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onTask.login.regenerate2FASecret" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onPageTask.login.invite" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "loginController"
            ]
          ]
        ]
        "onPagesInitialized" => array:2 [
          0 => array:5 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "storeReferrerPage"
            ]
            1 => array:2 [
              0 => Grav\Plugin\WeeboxPlugin {#106}
              1 => "onPagesInitialized"
            ]
            2 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "pageVisibility"
            ]
            3 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onPagesInitialized"
            ]
            4 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onPagesInitialized"
            ]
          ]
          -10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onPagesInitialized"
            ]
          ]
        ]
        "onDisplayErrorPage.401" => array:1 [
          -1 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onDisplayErrorPage401"
            ]
          ]
        ]
        "onDisplayErrorPage.403" => array:1 [
          -1 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onDisplayErrorPage403"
            ]
          ]
        ]
        "onPageFallBackUrl" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "authorizeFallBackUrl"
            ]
          ]
        ]
        "onTwigSiteVariables" => array:3 [
          -100000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "onTwigSiteVariables"
            ]
          ]
          0 => array:4 [
            0 => array:2 [
              0 => Grav\Plugin\MarkdownNoticesPlugin {#102}
              1 => "onTwigSiteVariables"
            ]
            1 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onTwigVariables"
            ]
            2 => array:2 [
              0 => Grav\Plugin\LangSwitcherPlugin {#100}
              1 => "onTwigSiteVariables"
            ]
            3 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onTwigSiteVariables"
            ]
          ]
          20 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\WeeboxPlugin {#106}
              1 => "onTwigSiteVariables"
            ]
          ]
        ]
        "onUserLoginAuthenticate" => array:5 [
          10003 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateRateLimit"
            ]
          ]
          10002 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateByRegistration"
            ]
          ]
          10001 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateByRememberMe"
            ]
          ]
          10000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticateByEmail"
            ]
          ]
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthenticate"
            ]
          ]
        ]
        "onUserLoginAuthorize" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginAuthorize"
            ]
          ]
        ]
        "onUserLoginFailure" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginGuest"
            ]
          ]
        ]
        "onUserLoginGuest" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginGuest"
            ]
          ]
        ]
        "onUserLogin" => array:2 [
          1000 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLoginResetRateLimit"
            ]
          ]
          10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLogin"
            ]
          ]
        ]
        "onUserLogout" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\LoginPlugin {#101}
              1 => "userLogout"
            ]
          ]
        ]
        "onMarkdownInitialized" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\MarkdownNoticesPlugin {#102}
              1 => "onMarkdownInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onMarkdownInitialized"
            ]
          ]
        ]
        "onGetPageBlueprints" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onGetPageBlueprints"
            ]
          ]
        ]
        "onThemeInitialized" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onThemeInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onThemeInitialized"
            ]
          ]
        ]
        "onBlueprintCreated" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onBlueprintCreated"
            ]
          ]
        ]
        "onBeforeCacheClear" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onBeforeCacheClear"
            ]
          ]
        ]
        "onAdminGenerateReports" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onAdminGenerateReports"
            ]
          ]
        ]
        "onAdminCompilePresetSCSS" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onAdminCompilePresetSCSS"
            ]
          ]
        ]
        "registerNextGenEditorPlugin" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "registerNextGenEditorPlugin"
            ]
            1 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "registerNextGenEditorPluginShortcodes"
            ]
          ]
        ]
        "onTwigInitialized" => array:1 [
          0 => array:5 [
            0 => array:2 [
              0 => Grav\Plugin\WeeboxPlugin {#106}
              1 => "onTwigInitialized"
            ]
            1 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onTwigInitialized"
            ]
            2 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onTwigInitialized"
            ]
            3 => array:2 [
              0 => Grav\Plugin\LangSwitcherPlugin {#100}
              1 => "onTwigInitialized"
            ]
            4 => array:2 [
              0 => Grav\Theme\Asya {#194}
              1 => "onTwigInitialized"
            ]
          ]
        ]
        "onFatalException" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ProblemsPlugin {#104}
              1 => "onFatalException"
            ]
          ]
        ]
        "onShortcodeHandlers" => array:1 [
          0 => array:2 [
            0 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onShortcodeHandlers"
            ]
            1 => array:2 [
              0 => Grav\Plugin\MavenGravPlugin {#103}
              1 => "onShortcodeHandlers"
            ]
          ]
        ]
        "onPageContentRaw" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onPageContentRaw"
            ]
          ]
        ]
        "onPageContentProcessed" => array:1 [
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onPageContentProcessed"
            ]
          ]
        ]
        "onPageContent" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\ShortcodeCorePlugin {#105}
              1 => "onPageContent"
            ]
          ]
        ]
        "onBeforeFlexFormInitialize" => array:1 [
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onBeforeFlexFormInitialize"
            ]
          ]
        ]
        "onPageTask" => array:1 [
          -10 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FlexObjectsPlugin {#98}
              1 => "onPageTask"
            ]
          ]
        ]
        "onPageProcessed" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onPageProcessed"
            ]
          ]
        ]
        "onTwigPageVariables" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onTwigVariables"
            ]
          ]
        ]
        "onFormValidationProcessed" => array:1 [
          0 => array:1 [
            0 => array:2 [
              0 => Grav\Plugin\FormPlugin {#99}
              1 => "onFormValidationProcessed"
            ]
          ]
        ]
      ]
      -sorted: []
      -optimized: array:15 [
        "Grav\Events\PluginsLoadedEvent" => array:2 [
          0 => Grav\Plugin\FlexObjectsPlugin::initializeFlex(): void {#129 …4}
          1 => Grav\Plugin\LoginPlugin::onPluginsLoaded(): void {#135 …4}
        ]
        "Grav\Events\SessionStartEvent" => array:1 [
          0 => Grav\Plugin\LoginPlugin::onSessionStart(SessionStartEvent $event): void {#143 …4}
        ]
        "onPluginsInitialized" => array:17 [
          0 => Grav\Plugin\ProblemsPlugin::autoload(): ClassLoader {#147 …4}
          1 => Grav\Plugin\LangSwitcherPlugin::autoload() {#148 …3}
          2 => Grav\Plugin\MarkdownNoticesPlugin::autoload() {#149 …3}
          3 => Grav\Plugin\ProblemsPlugin::onPluginsInitialized(): void {#150 …4}
          4 => Grav\Plugin\ShortcodeCorePlugin::autoload() {#151 …3}
          5 => Grav\Plugin\AdminPlugin::setup() {#152 …3}
          6 => Grav\Plugin\MavenGravPlugin::autoload(): ClassLoader {#153 …4}
          7 => Grav\Plugin\LoginPlugin::initializeSession(): void {#154 …4}
          8 => Grav\Plugin\AdminPlugin::onPluginsInitialized() {#155 …3}
          9 => Grav\Plugin\LoginPlugin::initializeLogin(): void {#156 …4}
          10 => Grav\Plugin\ShortcodeCorePlugin::onPluginsInitialized() {#157 …3}
          11 => Grav\Plugin\EmailPlugin::onPluginsInitialized() {#158 …3}
          12 => Grav\Plugin\FlexObjectsPlugin::onPluginsInitialized(): void {#159 …4}
          13 => Grav\Plugin\FormPlugin::onPluginsInitialized(): void {#160 …4}
          14 => Grav\Plugin\LangSwitcherPlugin::onPluginsInitialized() {#161 …3}
          15 => Grav\Plugin\MavenGravPlugin::onPluginsInitialized(): void {#162 …4}
          16 => Grav\Plugin\WeeboxPlugin::onPluginsInitialized() {#163 …3}
        ]
        "onThemeInitialized" => array:2 [
          0 => Grav\Plugin\MavenGravPlugin::onThemeInitialized(): void {#198 …4}
          1 => Grav\Plugin\ShortcodeCorePlugin::onThemeInitialized() {#199 …3}
        ]
        "onShortcodeHandlers" => array:2 [
          0 => Grav\Plugin\ShortcodeCorePlugin::onShortcodeHandlers() {#201 …3}
          1 => Grav\Plugin\MavenGravPlugin::onShortcodeHandlers(): void {#202 …4}
        ]
        "onRequestHandlerInit" => array:1 [
          0 => Grav\Plugin\AdminPlugin::onRequestHandlerInit(RequestHandlerEvent $event) {#251 …3}
        ]
        "onGetPageBlueprints" => array:1 [
          0 => Grav\Plugin\MavenGravPlugin::onGetPageBlueprints(Event $event) {#257 …3}
        ]
        "onGetPageTemplates" => array:1 [
          0 => Grav\Plugin\ErrorPlugin::onGetPageTemplates(Event $event): void {#256 …4}
        ]
        "onSchedulerInitialized" => array:3 [
          0 => Grav\Plugin\EmailPlugin::onSchedulerInitialized(Event $e) {#268 …3}
          1 => Grav\Common\Cache::onSchedulerInitialized(Event $event) {#269 …3}
          2 => Grav\Common\Backup\Backups::onSchedulerInitialized(Event $event) {#270 …3}
        ]
        "onTwigTemplatePaths" => array:9 [
          0 => Grav\Plugin\EmailPlugin::onTwigTemplatePaths() {#303 …3}
          1 => Grav\Plugin\FormPlugin::onTwigTemplatePaths(): void {#304 …4}
          2 => Grav\Plugin\LoginPlugin::onTwigTemplatePaths(): void {#305 …4}
          3 => Grav\Plugin\MavenGravPlugin::onTwigTemplatePaths() {#306 …3}
          4 => Grav\Plugin\WeeboxPlugin::onTwigTemplatePaths() {#307 …3}
          5 => Grav\Plugin\ShortcodeCorePlugin::onTwigTemplatePaths() {#308 …3}
          6 => Grav\Plugin\FlexObjectsPlugin::onTwigTemplatePaths(): void {#309 …4}
          7 => Grav\Plugin\LangSwitcherPlugin::onTwigTemplatePaths() {#310 …3}
          8 => Grav\Plugin\ErrorPlugin::onTwigTemplatePaths(): void {#311 …4}
        ]
        "onTwigInitialized" => array:5 [
          0 => Grav\Plugin\WeeboxPlugin::onTwigInitialized() {#326 …3}
          1 => Grav\Plugin\ShortcodeCorePlugin::onTwigInitialized() {#327 …3}
          2 => Grav\Plugin\FormPlugin::onTwigInitialized(): void {#328 …4}
          3 => Grav\Plugin\LangSwitcherPlugin::onTwigInitialized() {#329 …3}
          4 => Grav\Theme\Asya::onTwigInitialized() {#330 …3}
        ]
        "onTwigExtensions" => array:2 [
          0 => Grav\Plugin\FormPlugin::onTwigExtensions(): void {#358 …4}
          1 => Grav\Plugin\MavenGravPlugin::onTwigExtensions(): void {#359 …4}
        ]
        "onPageProcessed" => array:1 [
          0 => Grav\Plugin\FormPlugin::onPageProcessed(Event $event): void {#389 …4}
        ]
        "onPagesInitialized" => array:6 [
          0 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#380 …4}
          1 => Grav\Plugin\WeeboxPlugin::onPagesInitialized() {#379 …3}
          2 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#378 …4}
          3 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#377 …4}
          4 => Grav\Plugin\MavenGravPlugin::onPagesInitialized(Event $e) {#376 …3}
          5 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#375 …4}
        ]
        "onFatalException" => array:1 [
          0 => Grav\Plugin\ProblemsPlugin::onFatalException(): void {#250 …4}
        ]
      ]
    }
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/vendor/symfony/event-dispatcher/EventDispatcher.php
            } else {
                $this->removeListener($eventName, [$subscriber, \is_string($params) ? $params : $params[0]]);
            }
        }
    }
 
    /**
     * Triggers the listeners of an event.
     *
     * This method can be overridden to add functionality that is executed
     * for each listener.
     *
     * @param callable[] $listeners The event listeners
     * @param string     $eventName The name of the event to dispatch
     * @param object     $event     The event object to pass to the event handlers/listeners
     */
    protected function callListeners(iterable $listeners, string $eventName, $event)
    {
        if ($event instanceof Event) {
            $this->doDispatch($listeners, $eventName, $event);
 
            return;
        }
 
        $stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;
 
        foreach ($listeners as $listener) {
            if ($stoppable && $event->isPropagationStopped()) {
                break;
            }
            // @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
            $listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
        }
    }
 
    /**
     * @deprecated since Symfony 4.3, use callListeners() instead
     */
    protected function doDispatch($listeners, $eventName, Event $event)
    {
Arguments
  1. array:6 [
      0 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#380 …4}
      1 => Grav\Plugin\WeeboxPlugin::onPagesInitialized() {#379 …3}
      2 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#378 …4}
      3 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#377 …4}
      4 => Grav\Plugin\MavenGravPlugin::onPagesInitialized(Event $e) {#376 …3}
      5 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#375 …4}
    ]
    
  2. "onPagesInitialized"
    
  3. RocketTheme\Toolbox\Event\Event {#370}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/vendor/symfony/event-dispatcher/EventDispatcher.php
 
        if (\is_object($event)) {
            $eventName = $eventName ?? \get_class($event);
        } elseif (\is_string($event) && (null === $eventName || $eventName instanceof ContractsEvent || $eventName instanceof Event)) {
            @trigger_error(sprintf('Calling the "%s::dispatch()" method with the event name as the first argument is deprecated since Symfony 4.3, pass it as the second argument and provide the event object as the first argument instead.', EventDispatcherInterface::class), \E_USER_DEPRECATED);
            $swap = $event;
            $event = $eventName ?? new Event();
            $eventName = $swap;
        } else {
            throw new \TypeError(sprintf('Argument 1 passed to "%s::dispatch()" must be an object, "%s" given.', EventDispatcherInterface::class, \is_object($event) ? \get_class($event) : \gettype($event)));
        }
 
        if (null !== $this->optimized && null !== $eventName) {
            $listeners = $this->optimized[$eventName] ?? (empty($this->listeners[$eventName]) ? [] : $this->optimizeListeners($eventName));
        } else {
            $listeners = $this->getListeners($eventName);
        }
 
        if ($listeners) {
            $this->callListeners($listeners, $eventName, $event);
        }
 
        return $event;
    }
 
    /**
     * {@inheritdoc}
     */
    public function getListeners($eventName = null)
    {
        if (null !== $eventName) {
            if (empty($this->listeners[$eventName])) {
                return [];
            }
 
            if (!isset($this->sorted[$eventName])) {
                $this->sortListeners($eventName);
            }
 
            return $this->sorted[$eventName];
Arguments
  1. array:6 [
      0 => Grav\Plugin\LoginPlugin::storeReferrerPage(): void {#380 …4}
      1 => Grav\Plugin\WeeboxPlugin::onPagesInitialized() {#379 …3}
      2 => Grav\Plugin\LoginPlugin::pageVisibility(Event $event): void {#378 …4}
      3 => Grav\Plugin\FormPlugin::onPagesInitialized(): void {#377 …4}
      4 => Grav\Plugin\MavenGravPlugin::onPagesInitialized(Event $e) {#376 …3}
      5 => Grav\Plugin\FlexObjectsPlugin::onPagesInitialized(Event $event): void {#375 …4}
    ]
    
  2. "onPagesInitialized"
    
  3. RocketTheme\Toolbox\Event\Event {#370}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Grav.php
        return $event;
    }
 
    /**
     * Fires an event with optional parameters.
     *
     * @param  string $eventName
     * @param  Event|null $event
     * @return Event
     */
    public function fireEvent($eventName, Event $event = null)
    {
        /** @var EventDispatcherInterface $events */
        $events = $this['events'];
        if (null === $event) {
            $event = new Event();
        }
 
        $timestamp = microtime(true);
        $events->dispatch($event, $eventName);
 
        /** @var Debugger $debugger */
        $debugger = $this['debugger'];
        $debugger->addEvent($eventName, $event, $events, $timestamp);
 
        return $event;
    }
 
    /**
     * Set the final content length for the page and flush the buffer
     *
     * @return void
     */
    public function shutdown(): void
    {
        // Prevent user abort allowing onShutdown event to run without interruptions.
        if (function_exists('ignore_user_abort')) {
            @ignore_user_abort(true);
        }
 
Arguments
  1. RocketTheme\Toolbox\Event\Event {#370}
    
  2. "onPagesInitialized"
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/PagesProcessor.php
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
 
        // Dump Cache state
        $this->container['debugger']->addMessage($this->container['cache']->getCacheStatus());
 
        $this->container['pages']->init();
 
        $route = $this->container['route'];
 
        $this->container->fireEvent('onPagesInitialized', new Event(
            [
                'pages' => $this->container['pages'],
                'route' => $route,
                'request' => $request
            ]
        ));
        $this->container->fireEvent('onPageInitialized', new Event(
            [
                'page' => $this->container['page'],
                'route' => $route,
                'request' => $request
            ]
        ));
 
        /** @var PageInterface $page */
        $page = $this->container['page'];
 
        if (!$page->routable()) {
            $exception = new RequestException($request, 'Page Not Found', 404);
            // If no page found, fire event
            $event = new PageEvent([
                'page' => $page,
                'code' => $exception->getCode(),
                'message' => $exception->getMessage(),
Arguments
  1. "onPagesInitialized"
    
  2. RocketTheme\Toolbox\Event\Event {#370}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#368}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/TwigProcessor.php
 */
class TwigProcessor extends ProcessorBase
{
    /** @var string */
    public $id = 'twig';
    /** @var string */
    public $title = 'Twig';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $this->container['twig']->init();
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#301}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/AssetsProcessor.php
class AssetsProcessor extends ProcessorBase
{
    /** @var string */
    public $id = '_assets';
    /** @var string */
    public $title = 'Assets';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $this->container['assets']->init();
        $this->container->fireEvent('onAssetsInitialized');
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#298}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/SchedulerProcessor.php
class SchedulerProcessor extends ProcessorBase
{
    /** @var string */
    public $id = '_scheduler';
    /** @var string */
    public $title = 'Scheduler';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $scheduler = $this->container['scheduler'];
        $this->container->fireEvent('onSchedulerInitialized', new Event(['scheduler' => $scheduler]));
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#265}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/BackupsProcessor.php
class BackupsProcessor extends ProcessorBase
{
    /** @var string */
    public $id = '_backups';
    /** @var string */
    public $title = 'Backups';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $backups = $this->container['backups'];
        $backups->init();
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#260}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/TasksProcessor.php
                        $response = $handler->handle($request);
                    }
 
                    $this->stopTimer();
 
                    return $response;
                } catch (NotFoundException $e) {
                    // Task not found: Let it pass through.
                }
            }
 
            if ($task) {
                $this->container->fireEvent('onTask.' . $task);
            } elseif ($action) {
                $this->container->fireEvent('onAction.' . $action);
            }
        }
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#252}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/RequestProcessor.php
        $uri = $request->getUri();
        $ext = mb_strtolower(Utils::pathinfo($uri->getPath(), PATHINFO_EXTENSION));
 
        $request = $request
            ->withAttribute('grav', $this->container)
            ->withAttribute('time', $_SERVER['REQUEST_TIME_FLOAT'] ?? GRAV_REQUEST_TIME)
            ->withAttribute('route', Uri::getCurrentRoute()->withExtension($ext))
            ->withAttribute('referrer', $this->container['uri']->referrer());
 
        $event = new RequestHandlerEvent(['request' => $request, 'handler' => $handler]);
        /** @var RequestHandlerEvent $event */
        $event = $this->container->fireEvent('onRequestHandlerInit', $event);
        $response = $event->getResponse();
        $this->stopTimer();
 
        if ($response) {
            return $response;
        }
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#204}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#200}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/ThemesProcessor.php
 */
class ThemesProcessor extends ProcessorBase
{
    /** @var string */
    public $id = 'themes';
    /** @var string */
    public $title = 'Themes';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $this->container['themes']->init();
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#183}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/PluginsProcessor.php
class PluginsProcessor extends ProcessorBase
{
    /** @var string */
    public $id = 'plugins';
    /** @var string */
    public $title = 'Initialize Plugins';
 
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $this->startTimer();
        $grav = $this->container;
        $grav->fireEvent('onPluginsInitialized');
        $this->stopTimer();
 
        return $handler->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#145}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/InitializeProcessor.php
        // Initialize URI (uses session, see issue #3269).
        $this->initializeUri($config);
 
        // Grav may return redirect response right away.
        $redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
        if ($redirectCode) {
            $response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
            if ($response) {
                $this->stopTimer('_init');
 
                return $response;
            }
        }
 
        $this->stopTimer('_init');
 
        // Wrap call to next handler so that debugger can profile it.
        /** @var Response $response */
        $response = $debugger->profile(static function () use ($handler, $request) {
            return $handler->handle($request);
        });
 
        // Log both request and response and return the response.
        return $debugger->logRequest($request, $response);
    }
 
    public function processCli(): void
    {
        // Load configuration.
        $config = $this->initializeConfig();
 
        // Initialize logger.
        $this->initializeLogger($config);
 
        // Disable debugger.
        $this->container['debugger']->enabled(false);
 
        // Set timezone, locale.
        $this->initializeLocale($config);
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Debugger.php
        }
 
        $this->addMeasures();
        $this->addDeprecations();
        $this->timers = [];
 
        return $this->debugbar->getData();
    }
 
    /**
     * Hierarchical Profiler support.
     *
     * @param callable $callable
     * @param string|null $message
     * @return mixed
     */
    public function profile(callable $callable, string $message = null)
    {
        $this->startProfiling();
        $response = $callable();
        $this->stopProfiling($message);
 
        return $response;
    }
 
    public function addTwigProfiler(Environment $twig): void
    {
        $clockwork = $this->getClockwork();
        if ($clockwork) {
            $source = new TwigClockworkDataSource($twig);
            $source->listenToEvents();
            $clockwork->addDataSource($source);
        }
    }
 
    /**
     * Start profiling code.
     *
     * @return void
     */
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Processors/InitializeProcessor.php
        $this->initializeUri($config);
 
        // Grav may return redirect response right away.
        $redirectCode = (int)$config->get('system.pages.redirect_trailing_slash', 1);
        if ($redirectCode) {
            $response = $this->handleRedirectRequest($request, $redirectCode > 300 ? $redirectCode : null);
            if ($response) {
                $this->stopTimer('_init');
 
                return $response;
            }
        }
 
        $this->stopTimer('_init');
 
        // Wrap call to next handler so that debugger can profile it.
        /** @var Response $response */
        $response = $debugger->profile(static function () use ($handler, $request) {
            return $handler->handle($request);
        });
 
        // Log both request and response and return the response.
        return $debugger->logRequest($request, $response);
    }
 
    public function processCli(): void
    {
        // Load configuration.
        $config = $this->initializeConfig();
 
        // Initialize logger.
        $this->initializeLogger($config);
 
        // Disable debugger.
        $this->container['debugger']->enabled(false);
 
        // Set timezone, locale.
        $this->initializeLocale($config);
 
        // Load plugins.
Arguments
  1. Closure() {#142 …3}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#89}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php
use function in_array;
use function is_array;
use function strlen;
 
/**
 * Multipart request support for PUT and PATCH.
 */
class MultipartRequestSupport implements MiddlewareInterface
{
    /**
     * @param ServerRequestInterface $request
     * @param RequestHandlerInterface $handler
     * @return ResponseInterface
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $contentType = $request->getHeaderLine('content-type');
        $method = $request->getMethod();
        if (!str_starts_with($contentType, 'multipart/form-data') || !in_array($method, ['PUT', 'PATH'], true)) {
            return $handler->handle($request);
        }
 
        $boundary = explode('; boundary=', $contentType, 2)[1] ?? '';
        $parts = explode("--{$boundary}", $request->getBody()->getContents());
        $parts = array_slice($parts, 1, count($parts) - 2);
 
        $params = [];
        $files = [];
        foreach ($parts as $part) {
            $this->processPart($params, $files, $part);
        }
 
        return $handler->handle($request->withParsedBody($params)->withUploadedFiles($files));
    }
 
    /**
     * @param array $params
     * @param array $files
     * @param string $part
     * @return void
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
    protected $handler;
 
    /** @var ContainerInterface|null */
    protected $container;
 
    /**
     * {@inheritdoc}
     * @throws InvalidArgumentException
     */
    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        $middleware = array_shift($this->middleware);
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
  2. Grav\Framework\RequestHandler\RequestHandler {#87}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php
 
        // Use default callable if there is no middleware.
        if ($middleware === null) {
            return call_user_func($this->handler, $request);
        }
 
        if ($middleware instanceof MiddlewareInterface) {
            return $middleware->process($request, clone $this);
        }
 
        if (null === $this->container || !$this->container->has($middleware)) {
            throw new InvalidArgumentException(
                sprintf('The middleware is not a valid %s and is not passed in the Container', MiddlewareInterface::class),
                $middleware
            );
        }
 
        array_unshift($this->middleware, $this->container->get($middleware));
 
        return $this->handle($request);
    }
}
 
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/system/src/Grav/Common/Grav.php
                },
                'pagesProcessor' => function () {
                    return new PagesProcessor($this);
                },
                'debuggerAssetsProcessor' => function () {
                    return new DebuggerAssetsProcessor($this);
                },
                'renderProcessor' => function () {
                    return new RenderProcessor($this);
                },
            ]
        );
 
        $default = static function () {
            return new Response(404, ['Expires' => 0, 'Cache-Control' => 'no-store, max-age=0'], 'Not Found');
        };
 
        $collection = new RequestHandler($this->middleware, $default, $container);
 
        $response = $collection->handle($this['request']);
        $body = $response->getBody();
 
        /** @var Messages $messages */
        $messages = $this['messages'];
 
        // Prevent caching if session messages were displayed in the page.
        $noCache = $messages->isCleared();
        if ($noCache) {
            $response = $response->withHeader('Cache-Control', 'no-store, max-age=0');
        }
 
        // Handle ETag and If-None-Match headers.
        if ($response->getHeaderLine('ETag') === '1') {
            $etag = md5($body);
            $response = $response->withHeader('ETag', '"' . $etag . '"');
 
            $search = trim($this['request']->getHeaderLine('If-None-Match'), '"');
            if ($noCache === false && $search === $etag) {
                $response = $response->withStatus(304);
                $body = '';
Arguments
  1. Nyholm\Psr7\ServerRequest {#65}
    
/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/index.php
 
// Register the auto-loader.
$loader = require $autoload;
 
// Set timezone to default, falls back to system if php.ini not set
date_default_timezone_set(@date_default_timezone_get());
 
// Set internal encoding.
@ini_set('default_charset', 'UTF-8');
mb_internal_encoding('UTF-8');
 
use Grav\Common\Grav;
use RocketTheme\Toolbox\Event\Event;
 
// Get the Grav instance
$grav = Grav::instance(array('loader' => $loader));
 
// Process the page
try {
    $grav->process();
} catch (\Error|\Exception $e) {
    $grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
    throw $e;
}
 

Environment & details:

Key Value
cat
"86"
empty
empty
empty
Key Value
redirect_after_login
null
Key Value
TEMP
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/tmp"
TMPDIR
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/tmp"
TMP
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/tmp"
ORIG_SCRIPT_NAME
"/.fpm/php5.external"
ORIG_PATH_TRANSLATED
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/index.php"
ORIG_PATH_INFO
"/index.php"
ORIG_SCRIPT_FILENAME
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/.config/apache/asya.ch/.fpm/php5.external"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008?cat=86"
QUERY_STRING
"cat=86"
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_QUERY_STRING
"cat=86"
REDIRECT_URL
"/index.php"
REMOTE_PORT
"50216"
SCRIPT_FILENAME
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/index.php"
SERVER_ADMIN
"webmaster@asya.ch"
CONTEXT_DOCUMENT_ROOT
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/.config/apache/asya.ch/.fpm/"
CONTEXT_PREFIX
"/.fpm/"
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch"
REMOTE_ADDR
"54.82.44.149"
SERVER_PORT
"443"
SERVER_ADDR
"127.0.0.80"
SERVER_NAME
"asya.ch"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_HOST
"asya.ch"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
PHP_VERSION
"8.1"
SCRIPT_URI
"https://asya.ch/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
SCRIPT_URL
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
HTTPS
"on"
UNIQUE_ID
"ZgX3WiPtLgJgBwdNLbYApgAAAFc"
REDIRECT_STATUS
"200"
REDIRECT_HANDLER
"php5-fcgi"
REDIRECT_PHP_VERSION
"8.1"
REDIRECT_SCRIPT_URI
"https://asya.ch/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_SCRIPT_URL
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_HTTPS
"on"
REDIRECT_UNIQUE_ID
"ZgX3WiPtLgJgBwdNLbYApgAAAFc"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_PHP_VERSION
"8.1"
REDIRECT_REDIRECT_SCRIPT_URI
"https://asya.ch/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_REDIRECT_SCRIPT_URL
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_UNIQUE_ID
"ZgX3WiPtLgJgBwdNLbYApgAAAFc"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711667034.7174
REQUEST_TIME
1711667034
Key Value
TEMP
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/tmp"
TMPDIR
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/tmp"
TMP
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/tmp"
ORIG_SCRIPT_NAME
"/.fpm/php5.external"
ORIG_PATH_TRANSLATED
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/index.php"
ORIG_PATH_INFO
"/index.php"
ORIG_SCRIPT_FILENAME
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/.config/apache/asya.ch/.fpm/php5.external"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008?cat=86"
QUERY_STRING
"cat=86"
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_QUERY_STRING
"cat=86"
REDIRECT_URL
"/index.php"
REMOTE_PORT
"50216"
SCRIPT_FILENAME
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch/index.php"
SERVER_ADMIN
"webmaster@asya.ch"
CONTEXT_DOCUMENT_ROOT
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/.config/apache/asya.ch/.fpm/"
CONTEXT_PREFIX
"/.fpm/"
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/home/clients/053e83bc1b2c62a1c862eedb039740e5/sites/asya.ch"
REMOTE_ADDR
"54.82.44.149"
SERVER_PORT
"443"
SERVER_ADDR
"127.0.0.80"
SERVER_NAME
"asya.ch"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_HOST
"asya.ch"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
PHP_VERSION
"8.1"
SCRIPT_URI
"https://asya.ch/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
SCRIPT_URL
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
HTTPS
"on"
UNIQUE_ID
"ZgX3WiPtLgJgBwdNLbYApgAAAFc"
REDIRECT_STATUS
"200"
REDIRECT_HANDLER
"php5-fcgi"
REDIRECT_PHP_VERSION
"8.1"
REDIRECT_SCRIPT_URI
"https://asya.ch/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_SCRIPT_URL
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_HTTPS
"on"
REDIRECT_UNIQUE_ID
"ZgX3WiPtLgJgBwdNLbYApgAAAFc"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_PHP_VERSION
"8.1"
REDIRECT_REDIRECT_SCRIPT_URI
"https://asya.ch/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_REDIRECT_SCRIPT_URL
"/fr/product/epilation-laser-cuisses-devant-ou-derriere--epl0008"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_UNIQUE_ID
"ZgX3WiPtLgJgBwdNLbYApgAAAFc"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711667034.7174
REQUEST_TIME
1711667034
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler