public function addLocalFile($file)
    {
        if (!file_exists($file)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The file "%s" does not exists.',
                $file
            ));
        }

        $this->addScript(file_get_contents($file));

        return $this;
    }
public function addLocalFile($file)
    {
        if (!file_exists($file)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The file "%s" does not exists.',
                $file
            ));
        }

        $this->addScript(file_get_contents($file));

        return $this;
    }
public function addLocalFile ( $ file ) { if ( ! file_exists ( $ file ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( 'The file "%s" does not exists.' , $ file ) ) ; } $ this -> addScript ( file_get_contents ( $ file ) ) ; return $ this ; }
Add local javascript file

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