Composer\Satis\Console\Application::getComposer PHP Method

getComposer() public method

public getComposer ( boolean $required = true, array | string | null $config = null ) : Composer\Composer
$required boolean Not used
$config array | string | null either a configuration array or a filename to read from, if null it will read from the default filename
return Composer\Composer
    public function getComposer($required = true, $config = null)
    {
        if (null === $this->composer) {
            try {
                $this->composer = Factory::create($this->io, $config);
            } catch (\InvalidArgumentException $e) {
                $this->io->write($e->getMessage());
                exit(1);
            }
        }
        return $this->composer;
    }