*/ class FileAsset extends BaseAsset { private $path; /** * Constructor. * * @param string $path The absolute path to the asset * @param array $filters Filters for the asset * @param string $sourceUrl The source URL */ public function __construct($path, $filters = array(), $sourceUrl = null) { $this->path = $path; parent::__construct($filters, $sourceUrl); } public function load(FilterInterface $additionalFilter = null) { $this->doLoad(file_get_contents($this->path), $additionalFilter); } public function getLastModified() { return filemtime($this->path); } }