rector/src/Configuration/Option.php
Markus Staab 687a77765f
Added MemoryCacheStorage and use it in ChangedFilesDetectorTest (#525)
Co-authored-by: Markus Staab <markus.staab@redaxo.de>
2021-07-28 08:53:49 +02:00

174 lines
3.2 KiB
PHP

<?php
declare(strict_types=1);
namespace Rector\Core\Configuration;
use JetBrains\PhpStorm\Immutable;
use Rector\Caching\ValueObject\Storage\CacheStorageInterface;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Symplify\Skipper\ValueObject\Option as SkipperOption;
#[Immutable]
final class Option
{
/**
* @var string
*/
public const SOURCE = 'source';
/**
* @var string
*/
public const AUTOLOAD_FILE = 'autoload-file';
/**
* @var string
*/
public const BOOTSTRAP_FILES = 'bootstrap_files';
/**
* @var string
*/
public const DRY_RUN = 'dry-run';
/**
* @var string
*/
public const DRY_RUN_SHORT = 'n';
/**
* @var string
*/
public const OUTPUT_FORMAT = 'output-format';
/**
* @var string
*/
public const NO_PROGRESS_BAR = 'no-progress-bar';
/**
* @var string
*/
public const PHP_VERSION_FEATURES = 'php_version_features';
/**
* @var string
*/
public const AUTO_IMPORT_NAMES = 'auto_import_names';
/**
* @var string
*/
public const IMPORT_SHORT_CLASSES = 'import_short_classes';
/**
* @var string
*/
public const IMPORT_DOC_BLOCKS = 'import_doc_blocks';
/**
* @var string
*/
public const SYMFONY_CONTAINER_XML_PATH_PARAMETER = 'symfony_container_xml_path';
/**
* @var string
*/
public const CLEAR_CACHE = 'clear-cache';
/**
* @deprecated Cache is enabled by default
* @var string
*/
public const ENABLE_CACHE = 'enable_cache';
/**
* @var string
*/
public const PATHS = 'paths';
/**
* @var string
*/
public const AUTOLOAD_PATHS = 'autoload_paths';
/**
* @var string
*/
public const SKIP = SkipperOption::SKIP;
/**
* @var string
*/
public const FILE_EXTENSIONS = 'file_extensions';
/**
* @var string
*/
public const NESTED_CHAIN_METHOD_CALL_LIMIT = 'nested_chain_method_call_limit';
/**
* @var string
*/
public const CACHE_DIR = 'cache_dir';
/**
* Cache backend. Most of the time we cache in files, but in ephemeral environment (e.g. CI), a faster `MemoryCacheStorage` can be usefull.
*
* @var class-string<CacheStorageInterface>
* @internal
*/
public const CACHE_CLASS = FileCacheStorage::class;
/**
* @var string
*/
public const DEBUG = 'debug';
/**
* @var string
*/
public const XDEBUG = 'xdebug';
/**
* @var string
*/
public const CONFIG = 'config';
/**
* @var string
*/
public const PHPSTAN_FOR_RECTOR_PATH = 'phpstan_for_rector_path';
/**
* @var string
*/
public const TYPES_TO_REMOVE_STATIC_FROM = 'types_to_remove_static_from';
/**
* @var string
*/
public const NO_DIFFS = 'no-diffs';
/**
* @var string
*/
public const TEMPLATE_TYPE = 'template-type';
/**
* @var string
*/
public const ENABLE_EDITORCONFIG = 'enable_editorconfig';
/**
* @var string
*/
public const AUTOLOAD_FILE_SHORT = 'a';
/**
* @var string
*/
public const OUTPUT_FORMAT_SHORT = 'o';
}