/** * bootstrap method * * @param \Raphaelb\Foundation\Application $app * * @return mixed */ public function bootstrap(Application $app) { $items = []; /** @var \Illuminate\Filesystem\Filesystem $fs */ $fs = new Filesystem(); $app->instance('config', $config = new Repository($items)); foreach ($fs->files($app->getConfigPath()) as $file) { $config->set(Path::getFilenameWithoutExtension($file), $fs->getRequire($file)); } // Foreach loop for .phar file. // foreach (scandir($app->getConfigPath()) as $file ) // { // $config->set( // Path::getFilenameWithoutExtension($file), // $fs->getRequire($app->getConfigPath() . '/' .$file) // ); // } return $config; }
/** * bootstrap method * * @param Application $app * * @return mixed */ public function bootstrap(Application $app) { $app->registerProviders(); }
/** * bootstrap method */ public function bootstrap() { $this->app->bootstrapWith($this->bootstrappers()); }