Service Registrar
The Service Registrar component is able to register and boot Service Providers.
use \Aedart\Service\Registrar;
$registrar = new Registrar($application);
$registrar->register(\Acme\Warehouse\Providers\WarehouseServiceProvider::class);
$registrar->bootAll();
Caution
This package is intended to be used outside a normal Laravel application! There is no need for you to use it within your regular application, because Laravel already provides such functionality.
Initially this component has been designed to be to be used by the Athenaeum Core Application. However, it can be used on it's own, provided that you have an application available that implements the \Illuminate\Contracts\Foundation\Application
interface.