src/Controller/Plugin/Notification.php
protected function getNotificationsFromContainer()
    {
        if (!empty($this->notifications) || $this->isAdded) {
            return;
        }

        $container = $this->getContainer();
        $namespaces = [];

        foreach ($container as $namespace => $notification) {
            $this->notifications[$namespace] = $notification;
            $namespaces[] = $namespace;
        }

        $this->clearNotificationsFromContainer($namespaces);
    }
protected function getNotificationsFromContainer()
    {
        if (!empty($this->notifications) || $this->isAdded) {
            return;
        }

        $container = $this->getContainer();
        $namespaces = [];

        foreach ($container as $namespace => $notification) {
            $this->notifications[$namespace] = $notification;
            $namespaces[] = $namespace;
        }

        $this->clearNotificationsFromContainer($namespaces);
    }
protected function getNotificationsFromContainer ( ) { if ( ! empty ( $ this -> notifications ) || $ this -> isAdded ) { return ; } $ container = $ this -> getContainer ( ) ; $ namespaces = [ ] ; foreach ( $ container as $ namespace => $ notification ) { $ this -> notifications [ $ namespace ] = $ notification ; $ namespaces [ ] = $ namespace ; } $ this -> clearNotificationsFromContainer ( $ namespaces ) ; }
Clear notifications from container
Clear notifications from container