src/Services/RegistryProcessor.php
/**
     * Load's the data with the passed key from the registry.
     *
     * @param string $key       The key of the data to load
     * @param string $delimiter The delimiter to explode the key with
     *
     * @return mixed The data
     */
Load's the data with the passed key from the registry.
@param string $key       The key of the data to load
@param string $delimiter The delimiter to explode the key with

@return mixed The data
Load ' s the data with the passed key from the registry . @param string $key The key of the data to load @param string $delimiter The delimiter to explode the key with @return mixed The data
public function load($key, $delimiter = '.')
    {
        $elements = explode($delimiter, $key);
        $data = $this->getAttribute(array_shift($elements)) ;
        while ($k = array_shift($elements)) {
            if (isset($data[$k])) {
                $data = $data[$k];
            } else {
                throw new \InvalidArgumentException(sprintf('Can\'t resolve data for registry key "%s"', $k));
            }
        }
        return $data;
    }
public function load ( $ key , $ delimiter = '.' ) { $ elements = explode ( $ delimiter , $ key ) ; $ data = $ this -> getAttribute ( array_shift ( $ elements ) ) ; while ( $ k = array_shift ( $ elements ) ) { if ( isset ( $ data [ $ k ] ) ) { $ data = $ data [ $ k ] ; } else { throw new \ InvalidArgumentException ( sprintf ( 'Can\'t resolve data for registry key "%s"' , $ k ) ) ; } } return $ data ; }
Load's the data with the passed key from the registry.
Load ' s the data with the passed key from the registry .
// explode the key elements by the passed delimiter // load the data for the first key element // try to resolve the data recursively by the key elemens // finally return the loaded data