Sets the path of a configuration file for SonarQube Scanner.

@param  string $configuration
@return void
9474
public function setConfiguration($configuration)
    {
        $this->configuration = (string) $configuration;

        $message = sprintf("Set configuration to [%s].", $this->configuration);
        $this->log($message, Project::MSG_DEBUG);
    }
982151
public function setPaths($paths)
    {
        $this->paths = $paths;
        self::$pathsMap[$this->namespace] = $this->paths;
    }
227390
public function setPath(string $path)
    {
        $info = pathinfo($path);

        $this->setLocation($info["dirname"] ?? "");
        $this->setName($info["filename"] ?? "");
    }
873104
public function setPath($path): void
    {
        if (!is_dir($path)) {
            throw new ConfigException('Configuration directory is not exists');
        }
        $this->path = rtrim($path, '/');
    }
1057059
protected function initialize(array $configuration)
    {
        if (array_key_exists(self::WURFL, $configuration)) {
            $this->setWurflConfiguration($configuration[self::WURFL]);
        }

        if (array_key_exists(self::PERSISTENCE, $configuration)) {
            $this->persistence = $this->buildPersistenceConfiguration($configuration[self::PERSISTENCE]);
        }

        if (array_key_exists(self::CACHE, $configuration)) {
            $this->cache = $this->buildPersistenceConfiguration($configuration[self::CACHE]);
        }

        if (array_key_exists(self::CAPABILITY_FILTER, $configuration)) {
            $this->capabilityFilter = $configuration[self::CAPABILITY_FILTER];
        }

        if (array_key_exists(self::MATCH_MODE, $configuration)) {
            $this->setMatchMode($configuration[self::MATCH_MODE]);
        }

        if (array_key_exists(self::LOGGER, $configuration)) {
            $this->buildLoggerConfiguration($configuration[self::LOGGER]);
        } elseif (array_key_exists(self::LOG_DIR, $configuration)) {
            $this->buildFileLogger($configuration[self::LOG_DIR]);
        }

        $this->allowReload = array_key_exists(self::ALLOW_RELOAD, $configuration)
            ? (boolean) $configuration[self::ALLOW_RELOAD] : false;
    }
277193
private function setPath($path)
    {
        $this->info['path'] = $this->info['file'] = $this->info['extension'] = $this->info['content'] = null;

        if ($this->getScheme() === 'data') {
            $this->info['content'] = $path;

            return;
        }

        $file = substr(strrchr($path, '/'), 1);

        if (strlen($file)) {
            $path = substr($path, 0, -strlen($file));

            if (preg_match('/(.*)\.([\w]+)$/', $file, $match)) {
                $this->info['file'] = rawurldecode($match[1]);
                $this->info['extension'] = $match[2];
            } else {
                $this->info['file'] = rawurldecode($file);
            }
        }

        $this->info['path'] = [];

        foreach (explode('/', $path) as $dir) {
            $dir = rawurldecode($dir);

            if ($dir !== '') {
                $this->info['path'][] = $dir;
            }
        }
    }
62468
public function build(Configuration $configuration)
    {
        if (!$this->filesystem->isCacheFresh()) {
            $container = $this->compile($configuration);
            $this->filesystem->dump($container);
        }

        return $this->containerLoader->loadFrom($configuration->getContainerFilePath());
    }
80945
public function setNewDatabase($configuration): void
    {
        if ($configuration instanceof Configurator) {
            $this->db = new Db($configuration);
        } else {
            $this->db = new Db(new Configurator($configuration));
        }
    }
238388
protected static function loadAdditionalConfiguration(Configuration $configuration)
    {
        if (null !== ($pattern = $configuration->getAdditionalConfigurationDirectory())) {
            $iterator = new \DirectoryIterator(sprintf($pattern, dirname($configuration->getIdentity())));
            foreach ($iterator as $file) {
                $configuration->merge(Configuration::createFromFile($file->getRealPath()));
            }
        }
    }
82559
public function init(?string $configuration = 'stylesheets'): void
    {
        $config = Core::i()->config->getConfiguration($configuration);
        foreach ($config as $script) {
            $this->append($script);
        }
    }
718028
public function save( Configuration $configuration ) {

		/**
		 * Only values under the `project` key should be written to the project config
		 */
		$prefixDecorator = new PrefixConfigurableDecorator( $configuration, 'project' );

		$rancherizePath = $this->getConfigPath();

		$this->writer->write( $prefixDecorator, $rancherizePath );

	}
963845
public function addConfiguration(array $configuration)
    {
        $this ->configuration->setParameter(
            'configuration',
            array_merge(
                $this->configuration->getParameter('configuration'),
                $configuration
            )
        );

        return $this;
    }
708746
public function setFilepath(Path $filepath)
    {
        if ($this->filepath === null) {
            $this->filepath = $filepath;
        } else {
            $this->filepath->append($filepath);
        }
    }
984513
private function handleConfiguration($configuration)
    {
        $tensideConfig = $this->get('tenside.config');

        if (isset($configuration['php_cli'])) {
            $tensideConfig->setPhpCliBinary($configuration['php_cli']);
        }

        if (isset($configuration['php_cli_arguments'])) {
            $tensideConfig->setPhpCliArguments($configuration['php_cli_arguments']);
        }

        if (isset($configuration['php_cli_environment'])) {
            $tensideConfig->setPhpCliEnvironment($configuration['php_cli_environment']);
        }

        if (isset($configuration['php_force_background'])) {
            $tensideConfig->setForceToBackground($configuration['php_force_background']);
        }

        if (isset($configuration['php_can_fork'])) {
            $tensideConfig->setForkingAvailable($configuration['php_can_fork']);
        }

        if (isset($configuration['github_oauth_token'])) {
            $composerAuth = new AuthJson(
                $this->get('tenside.home')->tensideDataDir() . DIRECTORY_SEPARATOR . 'auth.json',
                null
            );

            $composerAuth->setGithubOAuthToken($configuration['github_oauth_token']);
        }
    }
994352
protected function processConfigurationTraitUpload(&$configuration)
    {
        //check parameters
        if(!isset($configuration['subjects'][$this->name]['Upload']) || empty($configuration['subjects'][$this->name]['Upload'])) {
            throw new \Exception(sprintf('missing Upload fields definitions into %s subject configuration', $this->name));
        } else {
            $this->uploadFieldsDefinitions = $configuration['subjects'][$this->name]['Upload'];
        }
    }
498336
public function setPath(string $path)
    {
        $this->path = $path;
        
        // update path to templates and preload list of templates.
        $this->contentPath = $this->path . DIR_CONTENT_BASENAME;
        $this->templatesPath = $this->contentPath . DIR_TEMPLATES_BASENAME;
        
        $this->templates = File::listFilesRecursively($this->templatesPath, false, EXT_PART, EXT_PAGE);
    }
259558
public static function addPath($path)
    {
        if ( ! isset(self::$_configPaths[$path]))
        {
            self::$_configPaths[$path] = $path;
        }
    }