src/lib/Herrera/Box/Box.php
public function signUsingFile($file, $password = null)
    {
        if (false === is_file($file)) {
            throw FileException::create(
                'The file "%s" does not exist or is not a file.',
                $file
            );
        }

        if (false === ($key = @file_get_contents($file))) {
            throw FileException::lastError();
        }

        $this->sign($key, $password);
    }
public function signUsingFile($file, $password = null)
    {
        if (false === is_file($file)) {
            throw FileException::create(
                'The file "%s" does not exist or is not a file.',
                $file
            );
        }

        if (false === ($key = @file_get_contents($file))) {
            throw FileException::lastError();
        }

        $this->sign($key, $password);
    }
public function signUsingFile ( $ file , $ password = null ) { if ( false === is_file ( $ file ) ) { throw FileException :: create ( 'The file "%s" does not exist or is not a file.' , $ file ) ; } if ( false === ( $ key = @ file_get_contents ( $ file ) ) ) { throw FileException :: lastError ( ) ; } $ this -> sign ( $ key , $ password ) ; }
Signs the Phar using a private key file.

@param string $file     The private key file name.
@param string $password The private key password.

@throws Exception\Exception
@throws FileException If the private key file could not be read.
Signs the Phar using a private key file .