Exemplo n.º 1
0
 /**
  * @param string $pathRoot
  * @throws CM_Exception_Invalid
  */
 public function __construct($pathRoot)
 {
     if (self::$_instance) {
         throw new CM_Exception_Invalid('Bootloader already instantiated');
     }
     self::$_instance = $this;
     mb_internal_encoding('UTF-8');
     umask(0);
     define('DIR_ROOT', $pathRoot);
     $this->_debug = (bool) getenv('CM_DEBUG');
 }