Airship\Engine\Continuum\Installers\Cabin::configure PHP Méthode

configure() protected méthode

Create the default configuration
protected configure ( string $nameSpace, array $metadata = [] ) : boolean
$nameSpace string
$metadata array
Résultat boolean
    protected function configure(string $nameSpace, array $metadata = []) : bool
    {
        if (!$this->defaultCabinConfig($nameSpace)) {
            self::$continuumLogger->store(LogLevel::ERROR, 'Could not create default configuration.', ['namespace' => $nameSpace, 'metadata' => $metadata]);
            return false;
        }
        if (!$this->createEmptyFiles($nameSpace)) {
            self::$continuumLogger->store(LogLevel::ERROR, 'Could not create empty files.', ['namespace' => $nameSpace, 'metadata' => $metadata]);
            return false;
        }
        if (!$this->updateCabinsRegistry($nameSpace, $metadata)) {
            self::$continuumLogger->store(LogLevel::ERROR, 'Could not update the cabins registry.', ['namespace' => $nameSpace, 'metadata' => $metadata]);
            return false;
        }
        if (!$this->createSymlinks($nameSpace)) {
            self::$continuumLogger->store(LogLevel::ERROR, 'Could not create symlinks for new cabin.', ['namespace' => $nameSpace, 'metadata' => $metadata]);
            return false;
        }
        return true;
    }