public function addRemoteFile($url)
    {
        if (!filter_var($url, FILTER_VALIDATE_URL)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The url "%s" is not valid.',
                $url
            ));
        }

        $this->files[] = (string) $url;

        return $this;
    }
public function addRemoteFile($url)
    {
        if (!filter_var($url, FILTER_VALIDATE_URL)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The url "%s" is not valid.',
                $url
            ));
        }

        $this->files[] = (string) $url;

        return $this;
    }
public function addRemoteFile ( $ url ) { if ( ! filter_var ( $ url , FILTER_VALIDATE_URL ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'The url "%s" is not valid.' , $ url ) ) ; } $ this -> files [ ] = ( string ) $ url ; return $ this ; }
Add remote javascript file

@param string $url
@return AbstractCompiler
@throws Exception\InvalidArgumentException
Add remote javascript file