/** * Register the service providers from this plugin. */ protected function registerProviders() { foreach ($this->get('providers', []) as $provider) { $this->app->register($provider); } }
public function testRegisterServiceProvider() { $app = new Application(); $provider = new LumenTestServiceProvider($app); $app->register($provider); }
/** * Register a service provider with the application. * * @param \Illuminate\Support\ServiceProvider|string $provider * @param array $options * @param bool $force * @return \Illuminate\Support\ServiceProvider * @static */ public static function register($provider, $options = array(), $force = false) { return \Laravel\Lumen\Application::register($provider, $options, $force); }