src/Liip/Drupal/Modules/EventManager/SubjectFactory.php
protected function fetchSubjectsFromRegistry($name)
    {
        try {
            $this->subjects = $this->registry->getContent();

            if (!empty($this->subjects[$name])) {
                $this->assertions->isInstanceOf(
                    $this->subjects[$name],
                    '\\Liip\\Drupal\\Modules\\EventManager\\EventSubjectInterface',
                    'Someone sneaked wrong value in there.. neat!! Will be reset now ;)'
                );
            }

        } catch (InvalidArgumentException $e) {
            $this->getDrupalConnectorFactory()
                ->getCommonConnector()
                ->watchdog(
                    'Liip Drupal Event Manager',
                    $e->getMessage(),
                    array(),
                    WATCHDOG_ERROR
                );

            $this->subjects[$name] = null;
        }
    }
protected function fetchSubjectsFromRegistry($name)
    {
        try {
            $this->subjects = $this->registry->getContent();

            if (!empty($this->subjects[$name])) {
                $this->assertions->isInstanceOf(
                    $this->subjects[$name],
                    '\\Liip\\Drupal\\Modules\\EventManager\\EventSubjectInterface',
                    'Someone sneaked wrong value in there.. neat!! Will be reset now ;)'
                );
            }

        } catch (InvalidArgumentException $e) {
            $this->getDrupalConnectorFactory()
                ->getCommonConnector()
                ->watchdog(
                    'Liip Drupal Event Manager',
                    $e->getMessage(),
                    array(),
                    WATCHDOG_ERROR
                );

            $this->subjects[$name] = null;
        }
    }
protected function fetchSubjectsFromRegistry ( $ name ) { try { $ this -> subjects = $ this -> registry -> getContent ( ) ; if ( ! empty ( $ this -> subjects [ $ name ] ) ) { $ this -> assertions -> isInstanceOf ( $ this -> subjects [ $ name ] , '\\Liip\\Drupal\\Modules\\EventManager\\EventSubjectInterface' , 'Someone sneaked wrong value in there.. neat!! Will be reset now ;)' ) ; } } catch ( InvalidArgumentException $ e ) { $ this -> getDrupalConnectorFactory ( ) -> getCommonConnector ( ) -> watchdog ( 'Liip Drupal Event Manager' , $ e -> getMessage ( ) , array ( ) , WATCHDOG_ERROR ) ; $ this -> subjects [ $ name ] = null ; } }
Retrieves the set of subjects from the registry currently attached.

@param string $name
Retrieves the set of subjects from the registry currently attached .