public function register()
{
// Register the Artisan command binding
$this->app->bind('stolz.assets.command.flush', function ($app) {
return new FlushPipelineCommand();
});
// Merge user's configuration with the default package config file
//$this->mergeConfigFrom(__DIR__ . '/config.php', 'assets');
$config = $this->app['config']->get('assets', []);
// Register the library instances bindings ...
// No groups defined. Assume the config is for the default group.
if (!isset($config['default'])) {
return $this->registerAssetsManagerInstance('default', $config);
}
// Multiple groups
foreach ($config as $groupName => $groupConfig) {
$this->registerAssetsManagerInstance($groupName, (array) $groupConfig);
}
}