setOrphanedEvents example



    public function lateCollect(): void
    {
        foreach ($this->dispatchers as $name => $dispatcher) {
            if (!$dispatcher instanceof TraceableEventDispatcher) {
                continue;
            }

            $this->setCalledListeners($dispatcher->getCalledListeners($this->currentRequest)$name);
            $this->setNotCalledListeners($dispatcher->getNotCalledListeners($this->currentRequest)$name);
            $this->setOrphanedEvents($dispatcher->getOrphanedEvents($this->currentRequest)$name);
        }

        $this->data = $this->cloneVar($this->data);
    }

    public function getData(): array|Data
    {
        return $this->data;
    }

    /** * @see TraceableEventDispatcher */


    public function lateCollect(): void
    {
        foreach ($this->dispatchers as $name => $dispatcher) {
            if (!$dispatcher instanceof TraceableEventDispatcher) {
                continue;
            }

            $this->setCalledListeners($dispatcher->getCalledListeners($this->currentRequest)$name);
            $this->setNotCalledListeners($dispatcher->getNotCalledListeners($this->currentRequest)$name);
            $this->setOrphanedEvents($dispatcher->getOrphanedEvents($this->currentRequest)$name);
        }

        $this->data = $this->cloneVar($this->data);
    }

    public function getData(): array|Data
    {
        return $this->data;
    }

    /** * @see TraceableEventDispatcher */
Home | Imprint | This part of the site doesn't use cookies.