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();
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.
Please read the official documentation for additional information.
The mono repository is located at github.com/aedart/athenaeum
This package follows Semantic Versioning 2.0.0
BSD-3-Clause, Read the LICENSE file included in this package