public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
    {
        if (!$repo->hasPackage($package)) {
            throw new \InvalidArgumentException('Package is not installed: '.$package);
        }

        $this->logVerbose(sprintf('Removing Contao sources for %s', $package->getName()));

        $this->removeSymlinks($package, $this->getContaoRoot(), $this->getSources($package));

        parent::uninstall($repo, $package);

        $this->logVerbose('');
    }