pharext\Task\Configure::__construct PHP Method

__construct() public method

public __construct ( string $cwd, array $args = null, string $prefix = null, string $common_name = "php" )
$cwd string working directory
$args array configure args
$prefix string install prefix, e.g. /usr/local
$common_name string PHP programs common name, e.g. php5
    public function __construct($cwd, array $args = null, $prefix = null, $common_name = "php")
    {
        $this->cwd = $cwd;
        $cmd = $common_name . "-config";
        if (isset($prefix)) {
            $cmd = $prefix . "/bin/" . $cmd;
        }
        $this->args = ["--with-php-config={$cmd}"];
        if ($args) {
            $this->args = array_merge($this->args, $args);
        }
    }