File "AbstractSpipCommand.php"

Full path: /home/argothem/www/organecyberpresse/vendor/spip-league/composer-installer/src/Command/AbstractSpipCommand.php
File size: 373 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace SpipLeague\Composer\Command;

use Composer\Command\BaseCommand;

abstract class AbstractSpipCommand extends BaseCommand
{
    protected function getRootDir(): string
    {
        $composer = $this->requireComposer();
        $vendorDir = $composer->getConfig()
            ->get('vendor-dir');

        return \realpath($vendorDir . '/..') ?: '';
    }
}