/**
  * @param $alias
  * @param string $namespace
  * @param bool $require
  * @return null
  *
  * @throws Exception
  */
 public static function load($alias, $namespace = 'default', $require = false)
 {
     if (isset(self::$_data[$namespace])) {
         return self::$_data[$namespace];
     }
     if (($path = Loader::getPathOfAlias($alias)) !== false) {
         if (file_exists($path . '.cfg.php')) {
             $config = (require $path . '.cfg.php');
             self::add($config, $namespace);
         } else {
             if (true == $require) {
                 throw new Exception("Alias \"{$alias}\" which was loaded is invalid. Make sure it points to an existing PHP file and the file is readable.");
             } else {
                 return false;
             }
         }
         return $config;
     }
     return false;
 }