2022-04-08 18:51:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare (strict_types=1);
|
|
|
|
namespace Rector\Config;
|
|
|
|
|
|
|
|
use Rector\Core\Configuration\Option;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
2022-04-10 00:31:45 +00:00
|
|
|
use RectorPrefix20220410\Webmozart\Assert\Assert;
|
2022-04-08 18:51:16 +00:00
|
|
|
/**
|
|
|
|
* @api
|
|
|
|
* Same as Symfony container configurator, with patched return type for "set()" method for easier DX.
|
|
|
|
* It is an alias for internal class that is prefixed during build, so it's basically for keeping stable public API.
|
|
|
|
*/
|
|
|
|
final class RectorConfig extends \Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param mixed[] $paths
|
|
|
|
*/
|
|
|
|
public function paths(array $paths) : void
|
|
|
|
{
|
2022-04-10 00:31:45 +00:00
|
|
|
\RectorPrefix20220410\Webmozart\Assert\Assert::allString($paths);
|
2022-04-08 18:51:16 +00:00
|
|
|
$parameters = $this->parameters();
|
|
|
|
$parameters->set(\Rector\Core\Configuration\Option::PATHS, $paths);
|
|
|
|
}
|
|
|
|
}
|