Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function boot()
 {
     if (!$this->isBooted) {
         $this->kernel->boot($this);
         parent::boot();
     }
     return $this;
 }
Exemplo n.º 2
0
 public function testRegisterAndBoot()
 {
     $container = new Container();
     $mockery = Mockery::mock(ServiceProviderTestInjector::class);
     $mockery->shouldReceive('register')->once();
     $mockery->shouldReceive('boot')->once();
     $container->instance('mockery', $mockery);
     $container->register(new ServiceProviderTestBootProvider());
     $container->boot();
 }