public function setBinary($binary)
    {
        parent::setBinary($binary);

        // Prepend PHP command if executing from archive
        if (mb_strpos($binary, 'composer.phar') !== false) {
            $php = new Php($this->container);
            $this->setParent($php);
        }
    }