Pickle\Package\PHP\Command\Build\Windows::install PHP Method

install() public method

public install ( )
    public function install()
    {
        $backCwd = getcwd();
        chdir($this->tempDir);
        /* Record the produced DLL filenames. */
        $files = (array) glob("*/*/php_*.dll");
        $files = array_merge($files, glob("*/php_*.dll"));
        $dlls = [];
        foreach ($files as $file) {
            $dlls[] = basename($file);
        }
        $res = $this->runCommand('nmake install');
        chdir($backCwd);
        if (!$res) {
            throw new \Exception('nmake install failed');
        }
        $ini = \Pickle\Engine\Ini::factory(Engine::factory());
        $ini->updatePickleSection($dlls);
    }