Exemplo n.º 1
0
 /**
  * Class Constructor. 
  */
 public function __construct()
 {
     // 			$this->config		=Nutshell::getInstance()->config;
     // 			$this->core			=Nutshell::getInstance();
     // 			$this->plugin		=Nutshell::getInstance()->plugin;
     // 			$this->request		=Nutshell::getInstance()->request;
     HookManager::execute('core\\plugin', ObjectHelper::getBaseClassName($this) . 'OnConstruct');
 }
Exemplo n.º 2
0
 /**
  * Load the core config based on environment variables.
  * Defaults to production mode.
  * 
  * The environment can be changed by setting an
  * environment variable named "NS_ENV" to anything else.
  * 
  * @access private
  * @return Nutshell
  */
 private function loadCoreConfig()
 {
     HookManager::execute('core', 'onBeforeConfigLoad');
     $this->config = Framework::loadConfig(APP_HOME . Config::CONFIG_FOLDER, NS_ENV);
     HookManager::execute('core', 'onAfterConfigLoad');
     return $this;
 }