Stolz\Assets\Laravel\ServiceProvider::registerAssetsManagerInstance PHP Method

registerAssetsManagerInstance() protected method

Register an instance of the assets manager library in the IoC container.
protected registerAssetsManagerInstance ( string $name, array $config ) : void
$name string Name of the group
$config array Config of the group
return void
    protected function registerAssetsManagerInstance($name, array $config)
    {
        $this->app->singleton("stolz.assets.group.{$name}", function ($app) use($config) {
            if (!isset($config['public_dir'])) {
                $config['public_dir'] = public_path();
            }
            return new Assets($config);
        });
    }