Exemplo n.º 1
0
 /**
  * Bootstraps the application.
  *
  * This method is called after all services are registered
  * and should be used for "dynamic" configuration (whenever
  * a service must be requested).
  */
 public function boot(Application $app)
 {
     if ($app->offsetExists('facade.aliases')) {
         $aliases = $app->offsetGet('facade.aliases');
         ClassAliaser::register($aliases);
     }
 }
Exemplo n.º 2
0
 /**
  * @When I unregister the class aliases
  */
 public function iUnregisterTheClassAliases()
 {
     ClassAliaser::unregister();
 }
Exemplo n.º 3
0
 /**
  * @AfterScenario
  */
 public function afterScenario()
 {
     ClassAliaser::unregister();
     FacadeAccessor::unsetServiceLocator();
 }