From 387e504437e422d6e369964a3eaa73ec25b0d9c1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 25 May 2021 22:39:55 +0200 Subject: [PATCH] Undeprecated dump-autoload --no-dev even though it is mostly not needed anymore, refs #9714 --- doc/03-cli.md | 4 ++-- src/Composer/Command/DumpAutoloadCommand.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 6e7de1333..46cb2fe8d 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -816,8 +816,8 @@ performance. * **--apcu:** Use APCu to cache found/not-found classes. * **--apcu-prefix:** Use a custom prefix for the APCu autoloader cache. Implicitly enables `--apcu`. -* **--no-dev:** Disables autoload-dev rules. (Deprecated: Composer now infers this - automatically according to the last `install` or `update` run.) +* **--no-dev:** Disables autoload-dev rules. Composer will by default infer this + automatically according to the last `install` or `update` `--no-dev` state. * **--ignore-platform-reqs:** ignore all `php`, `hhvm`, `lib-*` and `ext-*` requirements and skip the [platform check](07-runtime.md#platform-check) for these. See also the [`platform`](06-config.md#platform) config option. diff --git a/src/Composer/Command/DumpAutoloadCommand.php b/src/Composer/Command/DumpAutoloadCommand.php index dd06139b8..17686a952 100644 --- a/src/Composer/Command/DumpAutoloadCommand.php +++ b/src/Composer/Command/DumpAutoloadCommand.php @@ -35,7 +35,7 @@ class DumpAutoloadCommand extends BaseCommand new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize`.'), new InputOption('apcu', null, InputOption::VALUE_NONE, 'Use APCu to cache found/not-found classes.'), new InputOption('apcu-prefix', null, InputOption::VALUE_REQUIRED, 'Use a custom prefix for the APCu autoloader cache. Implicitly enables --apcu'), - new InputOption('no-dev', null, InputOption::VALUE_NONE, 'DEPRECATED: Disables autoload-dev rules. Composer now infers this automatically according to the last install or update run.'), + new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables autoload-dev rules. Composer will by default infer this automatically according to the last install or update --no-dev state.'), new InputOption('ignore-platform-req', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Ignore a specific platform requirement (php & ext- packages).'), new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore all platform requirements (php & ext- packages).'), )) @@ -78,7 +78,6 @@ EOT $generator = $composer->getAutoloadGenerator(); if ($input->getOption('no-dev')) { - $this->getIO()->writeError('You are using the deprecated option "--no-dev". Composer now infers the value automatically according to the last install or update run.'); $generator->setDevMode(false); } $generator->setClassMapAuthoritative($authoritative);