Add namespace.

This commit is contained in:
2014-06-02 18:58:49 +04:00
parent aec1a60985
commit 1ba341b064
159 changed files with 265 additions and 264 deletions

View File

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