Application Bootstrapping

Application bootstrapping consist into creating process(es) that implement Bootable interface. It can be done by using method bootstrap().

$app->boostrap([
    InitDatabase::class,
    StartSession::class,
]);
// exemple of a bootable process
class InitDatabase implements Bootable
{
    public function boot()
    {
        // do something
    }
}