register() 공개 메소드

Register a service provider with the application.
public register ( ServiceProvider | string $provider, array $options = [], boolean $force = false ) : ServiceProvider
$provider Illuminate\Support\ServiceProvider | string
$options array
$force boolean
리턴 Illuminate\Support\ServiceProvider
예제 #1
0
파일: Plugin.php 프로젝트: acmadi/MinionCMS
 /**
  * Register the service providers from this plugin.
  */
 protected function registerProviders()
 {
     foreach ($this->get('providers', []) as $provider) {
         $this->app->register($provider);
     }
 }
예제 #2
0
 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);
 }