src/DICIT/Registry.php
public function get($key, $throwIfNotFound = false)
    {
        if ($this->has($key)) {
            return $this->data[$key];
        }
        else if ($throwIfNotFound) {
            throw new \RuntimeException('Key ' . $key . ' not found in DI Container registry');
        }
        else {
            return null;
        }
    }
public function get($key, $throwIfNotFound = false)
    {
        if ($this->has($key)) {
            return $this->data[$key];
        }
        else if ($throwIfNotFound) {
            throw new \RuntimeException('Key ' . $key . ' not found in DI Container registry');
        }
        else {
            return null;
        }
    }
public function get ( $ key , $ throwIfNotFound = false ) { if ( $ this -> has ( $ key ) ) { return $ this -> data [ $ key ] ; } else if ( $ throwIfNotFound ) { throw new \ RuntimeException ( 'Key ' . $ key . ' not found in DI Container registry' ) ; } else { return null ; } }
Fetches an object from the registry.
@param string $key
@return mixed
Fetches an object from the registry .