Service Registrar

The Service Registrar component is able to register and boot Service Providersopen in new window.

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 functionalityopen in new window.

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.