/** * @param CM_Site_Abstract $site * @param bool|null $debug */ public function __construct(CM_Site_Abstract $site, $debug = null) { parent::__construct($site, $debug); foreach (self::getIncludedPaths($site) as $path) { $this->_js->append((new CM_File($path))->read()); } $internal = new CM_Asset_Javascript_Internal($site, $debug); $this->_js->append($internal->get()); }
/** * @param CM_Site_Abstract $site */ public function __construct(CM_Site_Abstract $site) { $content = ''; foreach (self::getIncludedPaths($site) as $path) { $content .= (new CM_File($path))->read(); } $internal = new CM_Asset_Javascript_Internal($site); $content .= $internal->get(); $this->_content = $content; }