Commit with composer.json

This commit is contained in:
2014-05-27 17:56:46 +04:00
parent c62620593f
commit aec1a60985
20 changed files with 70 additions and 46 deletions

View File

@ -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);
}