/** * 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); } }
/** * @Given I have registered an alias named :alias and mapped to non existing :class */ public function iHaveRegisteredAnAliasNamedAndMappedToNonExisting($alias, $class) { assert(!class_exists($class), "Class {$class} should not exist"); ClassAliaser::register([$alias => $class]); $this->lastAliasedClass = $alias; }