*/ 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:----dBcrqFb/k8BksSoeWrNCsMflWhQrrvcxosJa8YpefLl4waDWAC2VabMyoTVpvhM+bHi1TRBtxsP9mapnk3n7HFVDC4Dv1tUky8bzQZgm0WY1gyBaoqY3t/IHdgfNnutQb1lUR5PgvMRNQKqStcRTpwxAU+BZg8BP1Xzn1pbSA7Pc21OKPkWqGzhnNRbR5PmrFDQMoGspP86pdsnaoJjcGkKSIKDnZoEXOHDt9g18dhNqxv4FVn0oUNCsauqYoVtW9XzTFHg0GpdTG4FFZCkpoUrTdcwhZ9jbxKeneb3s/+pVrboA+s3Uyzm97oTfnSm9YYoB/Rzr8UsambbvUy4GbLXjMC7wECyuG/dQFJjtX1Gj3VdycbYLX8BteqXBqDXGj2ysYIACOTRXLDj6D6ZpnueuGx62odr90Zp6KRz3r6kQOldk7i8ZfWWJfGuj4IzOE5yulIEva6gGlWMNTB8qWBRwzRPqJzRsm5K6hb/A4Cq04rrILNiPr6gfA22pVefEAlpZkb9UiqYwdyyoMOgrAWG+blfWkpj6NNB7Bdx2D5SLvKrAtauaC5im8ODoZwDG5JkztGkRjVdg5ax/ym52afuPpVMHZ8Mpp1oVaAGI1esREEk8khprEsYS9S60Ys/I5S1weVkNVN0MLbl/2GpO91wBGh0AQX91EFJY8jDNuCI=----ATTACHMENT:----OTQ0NzAxODM2NjMwMzAwNyA3NTY3MzY0NTI1OTU5NTQ2IDM4MzM5MzIzNDgwMjMyOTk=