hiqdev\assetpackagist\Bootstrap::bootstrap PHP Method

bootstrap() public method

Bootstrap method to be called during application bootstrap stage.
public bootstrap ( Application $app )
$app yii\base\Application the application currently running
    public function bootstrap($app)
    {
        Yii::$container->set('db', function () {
            return Yii::$app->get('db');
        });
        Yii::$container->set(PackageRepository::class, PackageRepository::class, [Instance::of('db')]);
        Yii::$container->set(StorageInterface::class, function () {
            return Yii::$app->get('packageStorage');
        });
    }
Bootstrap