public function addFile($file, $local = null)
    {
        $this->invokeEvent(
            self::ADD_FILE,
            array(
                'file' => $file,
                'local' => $local
            )
        );
    }
public function addFile($file, $local = null)
    {
        $this->invokeEvent(
            self::ADD_FILE,
            array(
                'file' => $file,
                'local' => $local
            )
        );
    }
public function addFile ( $ file , $ local = null ) { $ this -> invokeEvent ( self :: ADD_FILE , array ( 'file' => $ file , 'local' => $ local ) ) ; }
Adds a file from the disk to the archive.

Triggers the `Builder::ADD_FILE` event.

$builder->addFile('/path/to/example.php', 'example.php');

@see Phar::addFile

@param string $file             The path to the file.
@param string $local (optional) The path to the file in the archive.

@api
Adds a file from the disk to the archive .