Properties

$name

$name : 

Type

$description

$description : 

Type

$compilerConfiger

$compilerConfiger : \Closure

Type

\Closure

$defPkgName

$defPkgName : string

Type

string

Methods

packCommand()

packCommand(\Inhere\Console\IO\Input  $input, \Inhere\Console\IO\Output  $output) : integer

pack project to a phar package

Parameters

\Inhere\Console\IO\Input $input
\Inhere\Console\IO\Output $output

Throws

\Exception

Returns

integer

Examples

Pack current dir to a phar file. {fullCommand} --dir vendor/swoft/devtool Pack the specified dir to a phar file. custom output phar file name php -d phar.readonly=0 {binFile} phar:pack -o=mycli.phar only update the input files: php -d phar.readonly=0 {binFile} phar:pack -o=mycli.phar --debug --files app/Command/ServeCommand.php
** File not found : {fullCommand} **

setCompilerConfiger()

setCompilerConfiger(\Closure  $compilerConfiger) 

Parameters

\Closure $compilerConfiger

unpackCommand()

unpackCommand(\Inhere\Console\IO\Input  $in, \Inhere\Console\IO\Output  $out) : integer

unpack a phar package to a directory

Parameters

\Inhere\Console\IO\Input $in
\Inhere\Console\IO\Output $out

Returns

integer

Examples

-f myapp.phar -d var/www/app
** File not found : {fullCommand} **

commandAliases()

commandAliases() 

packConfigure()

packConfigure(\Inhere\Console\IO\Input  $input) 

Parameters

\Inhere\Console\IO\Input $input

configCompiler()

configCompiler(string  $dir) : \Inhere\Console\Component\PharCompiler

Parameters

string $dir

Returns

\Inhere\Console\Component\PharCompiler

outputProgress()

outputProgress(\Inhere\Console\Component\PharCompiler  $cpr, \Inhere\Console\IO\Input  $input) : void

Parameters

\Inhere\Console\Component\PharCompiler $cpr
\Inhere\Console\IO\Input $input