46 Commits (6a466a120a404d1c5d492e5ca715841c491517fc)

Author SHA1 Message Date
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano eda9014bef
Add return types to all code which is not being extended by open source packages 2 years ago
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2 years ago
Jordi Boggiano 5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors (#10476)
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Samuel Felipe 3ccb54832b
PHPStan level 6 in src/Composer/Command (#10214) 3 years ago
Jordi Boggiano 9599eb613b
Type annotations 3 years ago
Jordi Boggiano 0761474599
Add type info to many properties/methods 3 years ago
Jordi Boggiano 91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930 3 years ago
vitman ecc8331312
Add dev mode env var for scripts run (#9793)
Co-authored-by: Vitali Tsyrkin <vitalit@playtika.com>
3 years ago
Simon Berger 974e7ba296 Removed unneccesary elseifs 4 years ago
Simon Berger 687f886d56 Moved duplicated table render code to a new method in BaseCommand 4 years ago
Bingqing Wang 63eb178297
compatible with symfony/console 5.0.0 getVerticalBorderChars() method 4 years ago
Jordi Boggiano 522ea033a3
Merge branch '1.8' 5 years ago
Markus Staab c876613d5c Added "Read more at" links to all commands (#8019) 5 years ago
Nguyễn Xuân Quỳnh bcff704bc5 Add alias of run-script command 5 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano 2bd34c0534 Merge branch '1.6' 6 years ago
Jordi Boggiano ec9ba46c5f Fix run-script --list failing to handle native script handlers, fixes #7069 6 years ago
Vladimir Reznichenko da9e00066c SCA: reduced repetitive methods references, used specialized PhpUnit assertions 6 years ago
Jordi Boggiano 1a6e3ee8c7 Show script description for custom commands in run-script --list, fixes #7009 6 years ago
Vladimir Reznichenko c8615358cb SCA with PHP Inspections (EA Extended) 7 years ago
Issei.M 0856dfa084 Aligns the verb form of commands' description 7 years ago
Den Girnyk 71e0fba216 Pass devMode from RunScriptCommand to Script\Event 8 years ago
Niels Keurentjes e6f21137ad Undefined or default return points fixed. 8 years ago
Rob Bast a245c4618b php-cs-fixer 8 years ago
Jordi Boggiano f681dbc51e Merge remote-tracking branch 'curry684/rewrite-depends' 8 years ago
Niels Keurentjes 692a3ed300 Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes. 8 years ago
Niels Keurentjes 126e71a991 Adds a --timeout parameter to run-script to override default timeout. 8 years ago
Jordi Boggiano 2609cfdd1d Always set bin-dir into PATH before calling scripts, fixes #4852, closes #4898 8 years ago
Olivier Laviale cc522c20bb Optimized this->getIO() 9 years ago
Jordi Boggiano b80038804f Fix env override regression, fixes #3820 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 3efed220a6 Clean up event dispatching code and make package events extend installer events 9 years ago
Rob Bast 1b10740473 Added --list to run-script command, closes #3671 9 years ago
Jordi Boggiano a8adbfeb9f Disallow overriding commands with scripts 10 years ago
Jordi Boggiano cec1627acf Add top level aliases for nonstandard scripts and allow parameter passing, refs #2516 10 years ago
Jordi Boggiano d9d8d09fe1 Add support for local binaries in scripts, refs #2516 10 years ago
Jordi Boggiano 33cedda708 Merge remote-tracking branch 'MaxGfeller/run-script-enhancement' 10 years ago
drscre b75beda99c Bug in RunScriptCommand::execute()
When checking for known command in commandEvents and scriptEvent '&&' should be used instead of '||'
10 years ago
Jordi Boggiano e221757197 Update code to latest EventDispatcher, refs #2722 10 years ago
Sandy Pleyte b9efdd8348 Separated the scripts events in 2 arrays because they need to be called by different dispatchers. 10 years ago
Sandy Pleyte fd4fb80d1e Fix for #2557, added missing run-scripts 10 years ago
Max Gfeller 421b09dc44 Check if a given event has registered any listeners. If not the script
is not defined in the composer.json file
11 years ago
Max Gfeller 040bbaca51 Don't throw an exception if the called script is not one of the
event-scripts. This makes it possible for one to define their own
scripts like "make-release" etc.
11 years ago
Sascha Egerer e31a0f8296 Add pre-status-cmd and post-status-cmd hooks 11 years ago
Fabien Potencier 91a2aa22fb Add a run-script command 11 years ago