src/Liip/Drupal/Modules/Registry/Drupal/D7Config.php
public function init()
    {
        $this->load();

        if (!empty($this->registry[$this->section])) {
            throw new RegistryException(
                RegistryException::DUPLICATE_INITIATION_ATTEMPT_TEXT . '(section: ' . $this->section . ')',
                RegistryException::DUPLICATE_INITIATION_ATTEMPT_CODE
            );
        }

        $this->getDrupalCommonConnector()->variable_set($this->section, $this->registry[$this->section]);
    }
public function init()
    {
        $this->load();

        if (!empty($this->registry[$this->section])) {
            throw new RegistryException(
                RegistryException::DUPLICATE_INITIATION_ATTEMPT_TEXT . '(section: ' . $this->section . ')',
                RegistryException::DUPLICATE_INITIATION_ATTEMPT_CODE
            );
        }

        $this->getDrupalCommonConnector()->variable_set($this->section, $this->registry[$this->section]);
    }
public function init ( ) { $ this -> load ( ) ; if ( ! empty ( $ this -> registry [ $ this -> section ] ) ) { throw new RegistryException ( RegistryException :: DUPLICATE_INITIATION_ATTEMPT_TEXT . '(section: ' . $ this -> section . ')' , RegistryException :: DUPLICATE_INITIATION_ATTEMPT_CODE ) ; } $ this -> getDrupalCommonConnector ( ) -> variable_set ( $ this -> section , $ this -> registry [ $ this -> section ] ) ; }
Initiates a registry.

@throws RegistryException
Initiates a registry .