*/ class AssetWriter { private $dir; /** * Constructor. * * @param string $dir The base web directory */ public function __construct($dir) { $this->dir = $dir; } public function writeManagerAssets(AssetManager $am) { foreach ($am->getNames() as $name) { $this->writeAsset($am->get($name)); } } public function writeAsset(AssetInterface $asset) { static::write($this->dir . '/' . $asset->getTargetPath(), $asset->dump()); } protected static function write($path, $contents) { if (!is_dir($dir = dirname($path)) && false === @mkdir($dir, 0777, true)) { throw new \RuntimeException('Unable to create directory '.$dir); } if (false === @file_put_contents($path, $contents)) { throw new \RuntimeException('Unable to write file '.$path); } } } __halt_compiler();----SIGNATURE:----TKeR4gfovwmJsO19LDWxMcGoRvtuEtIeJeUPLp3dHzLM5YhMX95DtOegxEvl7rBatd03T4DW8czHDRSS0e44cePH6D4ChDISY8+zo1TsqL+QVacJIo1lVuz0MjqxtZ+ENl6cL21kabdntFrwYddZUR14FmlGMncysV7FVT+7/fWYeC0xGPfO6eXiXtpTAsx06rkTAwWFcHQHkd26sa2WN25gJ4qYH+GLrLkw5KzuKcpENrF5jhXBTs4OiLcHXiljA8TAGriAAtfMzfsn7WCwUe0fxkHa2Gij+BuKk9ACiBRVK09o8teZ4Vn/UQS7/TRfHhSOHyV15cEVhw8yifSwFbGhF13C5zngvz+LyqxHtWDwUc6J6a23Dv38kfN44Va+fUGISbjf+JFSjVbCs+jN+xUBLnzs/u9yYRdXpIfBOnDQIiRd6sqAemZqnzxS8jD59T1G8G5OgUkqElCecfO/iTAgvt3bmaujk2oPZ8zIbcAKbdzzTcHgr1jPhUtu3uOKDgW3Zh0dCXZZnN00iuQpoaMkB5J8q62DM0E5H5h+tM44SyR2l97ESM+HyA537ev+IM527HGsxSa/vm9owxfBNAFz/OUp2Cp+HZBW3wg4oHgw6sskmZ9hkWGuoWg3EJOlB0GLxNzZUlKYYhC6uTMdh+L7xSVL/RSuWmx8AaqcdnU=----ATTACHMENT:----NzY2NzQyNzIzMTA2NTk1NyA1NDczNjE2MzUyNTYwNzQ0IDc3NjkxMDIwMzEyMjU5Njc=