Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function loadServiceProvider($class)
- {
- $instance = new $class;
- $key = $class::getKey();
- $value = $instance->boot($this);
- $this->register($key, $value);
- }
- public static function createDefaultApplication()
- {
- $app = Application::setFacadeApplication(new static);
- $app->loadServiceProvider(HelperServiceProvider::class);
- $app->loadServiceProvider(ConfigServiceProvider::class);
- $app->loadServiceProvider(LoaderServiceProvider::class);
- $app->loadServiceProvider(ScreenServiceProvider::class);
- return $app;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement