Commit with composer.json
This commit is contained in:
10
Config.php
10
Config.php
@ -7,7 +7,9 @@
|
||||
* @since 2010-02-17
|
||||
*/
|
||||
|
||||
class Config extends Registry
|
||||
namespace Majestic;
|
||||
|
||||
class Config extends \Registry
|
||||
{
|
||||
|
||||
private static $_class_name = 'Config';
|
||||
@ -21,17 +23,17 @@ class Config extends Registry
|
||||
}
|
||||
}
|
||||
|
||||
class ConfigArray extends ArrayObject
|
||||
class ConfigArray extends \ArrayObject
|
||||
{
|
||||
public function __construct($array)
|
||||
{
|
||||
parent::__construct($array, ArrayObject::ARRAY_AS_PROPS);
|
||||
parent::__construct($array, \ArrayObject::ARRAY_AS_PROPS);
|
||||
}
|
||||
|
||||
public function offsetGet($index)
|
||||
{
|
||||
if (!$this->offsetExists($index)) {
|
||||
throw new GeneralException('Configuration variable "' . $index . '" undefined');
|
||||
throw new \GeneralException('Configuration variable "' . $index . '" undefined');
|
||||
}
|
||||
return parent::offsetGet($index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user