src/Registry/Registry.php
public static function set($pKey, $pValue)
    {
        if (array_key_exists($pKey, self::$_registry)) {
            throw new Exception("The registry key '$pKey' already exists");
        }

        return self::$_registry[$pKey] = $pValue;
    }
public static function set($pKey, $pValue)
    {
        if (array_key_exists($pKey, self::$_registry)) {
            throw new Exception("The registry key '$pKey' already exists");
        }

        return self::$_registry[$pKey] = $pValue;
    }
public static function set ( $ pKey , $ pValue ) { if ( array_key_exists ( $ pKey , self :: $ _registry ) ) { throw new Exception ( "The registry key '$pKey' already exists" ) ; } return self :: $ _registry [ $ pKey ] = $ pValue ; }
Add an entrey to the registry.

@param string $pKey
@param mixed $value
@return bool
Add an entrey to the registry .