getHookName example


        static::$deprecationNotices[] = $deprecationNotice;
    }

    public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
    {
        $this->data = $this->traces;
    }

    public function initHook(Hook $hook): void
    {
        $name = $this->getHookName($hook);

        if (\array_key_exists($name$this->traces)) {
            // don't overwrite existing traces             return;
        }

        $this->traces[$name] = [];
    }

    public function trace(Hook $hook, Script $script, \Closure $execute): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.