1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00
Commit graph

136 commits

Author SHA1 Message Date
Nicolas Grekas
6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 2016-12-06 11:21:44 +01:00
Fabien Potencier
69740bbbee Refactor some common logic in Command classes 2016-10-30 14:50:44 -07:00
Jesse Donat
cbfd81dc99 Adds flag to allow suggestions to be skipped 2016-05-31 17:48:43 -05:00
Jordi Boggiano
4319435154 Make sure the --no-plugin is documented as available everywhere and not redefined 2016-04-28 20:12:45 +01:00
Niels Keurentjes
692a3ed300 Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes. 2016-02-19 23:56:46 +01:00
Jordi Boggiano
8913ac2fff Merge pull request #4362 from bd808/classmap-authoritative-cli
Add cli argument for classmap-authoritative
2015-09-20 16:00:21 +01:00
Olivier Laviale
cc522c20bb Optimized this->getIO() 2015-09-14 14:30:26 +02:00
Bryan Davis
cc2b9cfca5 Add cli argument for classmap-authoritative
Add a `--classmap-authoritative (-a)` argument to `composer install`,
`composer update` and `composer dumpautoload`. This enables the same
authoritative classmap behavior as the existing `classmap-authoritative`
configuration setting. The option can be used for creating highly
optimized production autoloaders via `composer install --no-dev
--optimize-autoloader --classmap-authoritative` for projects where
multiple autoloaders are present and unnecessary `file_exists` calls
introduce performance issues.

Closes #4361
2015-08-19 22:18:54 -06:00
Rob Bast
cb336a5416 Implement writeError throughout Composer 2015-02-25 11:00:35 +01:00
Jordi Boggiano
b39e0a271f Merge pull request #3517 from WouterJ/patch-2
Added deprecated warning for the dev option
2015-01-30 10:00:15 +00:00
Wouter J
32218e97d1 Added deprecated warning for the dev option 2015-01-28 17:16:58 +01:00
Bryan Davis
ad1f8e6c5a Add classmap-authoritative config setting
Add a "classmap-authoritative" configuration setting that can be used to
disable searching the various prefix and fallback directories for
classes that have not been registered with the
Composer\Autoload\ClassLoader class map. This setting can be used to
optimize performance by avoiding a potentially large number of
`file_exists` calls when Composer is being used in a program with
additional autoloader facilities. Use of the setting implies
"optimize-autoloader" to ensure that the most complete class map
possible is generated.

Closes #3603
2015-01-03 17:35:25 -07:00
Jordi Boggiano
095dc61295 Rename runAutoloader to dumpAutoloader, refs #3453 2014-12-29 20:29:13 +00:00
Matthew J. Sahagian
198ac7bc5b Expose no autoloader option to install command 2014-11-21 13:20:48 -08:00
Jordi Boggiano
94926218e8 CS fixes 2014-10-17 18:57:27 +01:00
Jordi Boggiano
ec0463a400 Add tests for platform packages required by root and avoid creating rules altogether instead of disabling them, refs #3320 2014-10-17 15:30:27 +01:00
alu
b7fa302b90 add ignore-platform-package-requirements for update/install commands. 2014-10-08 14:20:36 +09:00
Jordi Boggiano
ac497feaba CS fixes 2014-06-10 16:13:12 +02:00
Jordi Boggiano
a90a05a059 Detect composer install foo/bar misuse and suggest alt 2014-02-03 23:02:33 +01:00
Robert Boloc
5e5311a224 use optimize-autoloader config param in update and install commands 2014-01-17 15:04:10 +01:00
Jordi Boggiano
e126c92525 Fix exit codes, cc @tyrael 2013-11-22 16:17:02 +01:00
Nils Adermann
d00ca4bcdb Add a Command event triggered by all comands which load plugins 2013-09-05 14:30:03 +02:00
Nils Adermann
15ac7be6f1 Fix disabling plugins which has to happen in the factory now 2013-08-30 12:51:41 +02:00
Nils Adermann
f0b45099c1 Correct authorship info for files I edited 2013-08-30 12:51:41 +02:00
Nils Adermann
b83535d2d9 Add back --no-custom-installers option with a deprecated warning 2013-08-30 12:51:41 +02:00
Nils Adermann
01a08a2ff3 As preparation for composer plugins, rename custom installers to plugins 2013-08-30 12:51:40 +02:00
Jordi Boggiano
22c7d4119f install and create-project now default to dev mode (use --no-dev for production installs) 2013-06-04 15:22:19 +02:00
Jordi Boggiano
3b97e2e260 Add support for new verbosity levels, and initial debug output 2013-04-26 23:23:35 +02:00
Miklós Márton
72a4146383 Scratch 'prefer-source'; 'preferred-install' is the bee's knees 2013-03-05 12:56:09 +01:00
Miklós Márton
0d81ab7f46 Install/update now uses the new config variable 'prefer-source', fixes #553 2013-03-04 20:29:14 +01:00
Jordi Boggiano
caf26ac37c Enable dev mode by default in update command, add a --no-dev flag, fixes #1005 2013-03-03 00:42:22 +01:00
Galymzhan
f59181d7d5 add support for --no-progress, fixes #621 2012-12-11 20:30:09 +06:00
Jordi Boggiano
f3bfeb3608 Rename --optimize-autoloaders to --optimize-autoloader since there is just one 2012-10-24 17:33:31 +02:00
Sebastian Krebs
578a216343 Add shorthand '-o'-option for '--optimize-autoloaders' 2012-10-23 14:58:41 +02:00
Sebastian Krebs
d3aaeb21da Allow autoloader optimization right from 'install' 2012-10-23 13:41:17 +02:00
Jordi Boggiano
a9afa8bc1f Merge remote-tracking branch 'mheleniak/prefer_dist' and fix dists
Conflicts:
	src/Composer/Installer.php
	src/Composer/Package/Locker.php
2012-09-27 18:36:55 +02:00
Jordi Boggiano
0689e24e83 Update command descriptions, fixes #1068 2012-09-06 00:26:04 +02:00
Mateusz Heleniak
aa0ff14be5 added --prefer-dist option 2012-08-31 22:25:17 +02:00
Jordi Boggiano
4d84f62cd9 Improve consistency and formatting of verbose output for update/install 2012-08-18 16:01:44 +02:00
Johannes M. Schmitt
ec74e422f4 added no-custom-installers option to install/update command 2012-07-22 01:06:28 +02:00
Jordi Boggiano
1095d84256 Rename --skip-scripts to --no-scripts 2012-05-23 13:28:47 +02:00
Paweł Jędrzejewski
129884ef72 rename skipScripts to runScripts. 2012-05-13 13:25:02 +02:00
Paweł Jędrzejewski
123dec52fb typos in command option description. 2012-05-13 13:05:56 +02:00
Paweł Jędrzejewski
cc8b33117a add --skip-scripts option to install/update commands. 2012-05-13 13:05:56 +02:00
Jordi Boggiano
53191eb0fe Remove recommend, make suggest informational, add require-dev, fixes #78, fixes #510 2012-04-14 23:38:05 +02:00
Luis Cordova
f76c65914c cleaned up some getApplication()->getIO() into getIO()s 2012-03-23 14:57:43 -05:00
Jordi Boggiano
b12e73792c Handle SolverProblemException nicer 2012-03-18 22:43:07 +01:00
digitalkaoz
a4f6314daa reverted command interfaces for installer refactoring 2012-03-10 19:56:15 +01:00
digitalkaoz
673dd6312b fluent api for installer options 2012-03-10 18:08:36 +01:00
Jordi Boggiano
5f2e42ec46 CS fixes, made EventDispatcher optional in factory method 2012-03-10 01:16:37 +01:00