public function init()
    {
        Profiler::start('init', 'init');
        $this->initTime = microtime(true);
        $this->init = true;
        Log::d('Initializing framework...');
//        $this->register_error_handler();
        date_default_timezone_set('Europe/Madrid');
        $this->setupLanguage();

        Profiler::stop('init');
        $this->manager = new ModuleManager($this->config, $this->directory);
        $this->manager->init();
        Log::d('Module manager initialized');
        $this->inited = true;

//        Log::d('Modules initialized: ' . count($this->manager->getModules()));
//        Log::d(array_map(function ($a) {
//            return $a->title;
//        }, $this->manager->getModules()));
    }
public function init()
    {
        Profiler::start('init', 'init');
        $this->initTime = microtime(true);
        $this->init = true;
        Log::d('Initializing framework...');
//        $this->register_error_handler();
        date_default_timezone_set('Europe/Madrid');
        $this->setupLanguage();

        Profiler::stop('init');
        $this->manager = new ModuleManager($this->config, $this->directory);
        $this->manager->init();
        Log::d('Module manager initialized');
        $this->inited = true;

//        Log::d('Modules initialized: ' . count($this->manager->getModules()));
//        Log::d(array_map(function ($a) {
//            return $a->title;
//        }, $this->manager->getModules()));
    }
public function init ( ) { Profiler :: start ( 'init' , 'init' ) ; $ this -> initTime = microtime ( true ) ; $ this -> init = true ; Log :: d ( 'Initializing framework...' ) ; //        $this->register_error_handler();
 date_default_timezone_set ( 'Europe/Madrid' ) ; $ this -> setupLanguage ( ) ; Profiler :: stop ( 'init' ) ; $ this -> manager = new ModuleManager ( $ this -> config , $ this -> directory ) ; $ this -> manager -> init ( ) ; Log :: d ( 'Module manager initialized' ) ; $ this -> inited = true ; //        Log::d('Modules initialized: ' . count($this->manager->getModules()));
 //        Log::d(array_map(function ($a) {
 //            return $a->title;
 //        }, $this->manager->getModules()));
 }
Inicializar la apliacion de forma interna
Inicializar la apliacion de forma interna