widmogrod/zf2-assetic-module — pull request #86 by thestanislav (2013-07-25 07:35:00+00:00)
Title: Allow add collections at runtime

Example:

```php
getRequest() instanceof HttpRequest){
$sm = $e->getApplication()->getServiceManager();
$sm->get('AsseticBundle\Service')->getEventManager()->attach('setupRenderer', array($this, 'configureAssets'));
}
}
```

```php
getTarget();
$config = $target->getServiceLocator()->get('config');
$config = $config['collections'];
foreach($config as $assetName){
if ($target->getAssetManager()->has($assetName)){
$response[] = $assetName;
}
}
return $response;
}
```