/** * {@inheritDoc} * * @param ReferenceParserInterface $parser The reference parser * @param string $source An absolute path * @param array $filters An array of filters * @param string $sourceRoot The source asset root directory * @param string $sourcePath The source asset path * @param array $vars * * @throws \InvalidArgumentException If the supplied root doesn't match the * source when guessing the path */ public function __construct(ReferenceParserInterface $parser, $source, $filters = array(), $sourceRoot = null, $sourcePath = null, array $vars = array()) { $source = $parser->parse($source)->getFullPath(); return parent::__construct($source, $filters, $sourceRoot, $sourcePath, $vars); }