Exemplo n.º 1
0
 protected function registerDev()
 {
     $this->app->instance('codex.dev', $this->dev = Dev::getInstance());
     $this->codexHook('document:render', function () {
         $this->dev->stopBenchmark(true);
     });
     $this->codexIgnoreRoute('dev');
 }
Exemplo n.º 2
0
 public function scanAndResolveAddonPackages()
 {
     Dev::getInstance()->benchmark('Codex Addon Factory findAndRegisterAll');
     //        if ( $this->manifest->isEmpty() ) {
     //            $this->manifest->load();
     //        }
     foreach ($this->getManifest()->get('addons.*.autoloads.*.path', []) as $file) {
         $this->scanAndResolveDirectory($file);
     }
     Dev::getInstance()->addMessage(array_keys($this->registered));
     Dev::getInstance()->benchmark('-');
     #codex()->dev->stopMeasure('Codex\Addons\Factory::findAndRegisterAll');
 }