*/ class PackagerFilter implements FilterInterface { private $packages; public function __construct(array $packages = array()) { $this->packages = $packages; } public function addPackage($package) { $this->packages[] = $package; } public function filterLoad(AssetInterface $asset) { static $manifest = <<getContent()); $packager = new \Packager(array_merge(array($package), $this->packages)); $content = $packager->build(array(), array(), array('Application'.$hash)); unlink($package.'/package.yml'); unlink($package.'/source.js'); rmdir($package); $asset->setContent($content); } public function filterDump(AssetInterface $asset) { } }