Add namespace.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php namespace Majestic;
|
||||
/**
|
||||
* @copyright NetMonsters <team@netmonsters.ru>
|
||||
* @link http://netmonsters.ru
|
||||
@ -7,9 +7,9 @@
|
||||
* @since 2010-02-17
|
||||
*/
|
||||
|
||||
namespace Majestic;
|
||||
|
||||
class Config extends \Registry
|
||||
|
||||
class Config extends Registry
|
||||
{
|
||||
|
||||
private static $_class_name = 'Config';
|
||||
@ -33,7 +33,7 @@ class ConfigArray extends \ArrayObject
|
||||
public function offsetGet($index)
|
||||
{
|
||||
if (!$this->offsetExists($index)) {
|
||||
throw new \GeneralException('Configuration variable "' . $index . '" undefined');
|
||||
throw new Exception\GeneralException('Configuration variable "' . $index . '" undefined');
|
||||
}
|
||||
return parent::offsetGet($index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user