Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
3 years ago
Stephan
44c5b6cde6
Config: add source option for command to show where a config value is loaded from ( #10129 )
3 years ago
Martin Herndl
3013674c92
Refactor ignore platform reqs checks ( #10079 )
...
Introduces a `PlatformRequirementFilter` with methods that help to decide if a requirement is ignored or not as discussed in #10045 but without changing behaviour.
3 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
deb4c48bbc
Avoid using an invalid path for InstalledFilesystemRepo in create-project and use an array repo instead, fixes #10020 , fixes #10021
3 years ago
Nicolas Grekas
eac069bf36
Fix --no-scripts disabling events for plugins
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
Jordi Boggiano
f13282e555
Change default preferred-install to dist, add --prefer-install=auto|dist|source to allow specifying auto ( #9603 )
...
Fixes #9546
Fixes #9674
4 years ago
Jordi Boggiano
18e268556d
Fix type warning on php8.1, refs #9770
4 years ago
Brandon Kelly
7652408829
Only call sapi_windows_set_ctrl_handler() for CLI requests ( #9771 )
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
f2f3b03fec
Fix config/create-project handling of repositories to prepend them by default as this is most likely the goal, fixes #9371
4 years ago
Jordi Boggiano
badd1f2146
Remove silly default values of false on Installer class, refs #9204
4 years ago
Simon Berger
974e7ba296
Removed unneccesary elseifs
4 years ago
Simon Berger
002fd39bc6
Removed passing of parameters with default value
4 years ago
Jordi Boggiano
57b4016f8a
Show default value instead of optional, refs #9181
4 years ago
Samuel Ryan
a66db48673
✨ Ask for target directory when using `create-project`
4 years ago
Jordi Boggiano
c3028c02d9
Merge branch '1.10'
4 years ago
Jordi Boggiano
eac03e16e7
Reuse repository manager and others directly from the Composer instance, refs #9057
4 years ago
Jordi Boggiano
433968de17
Fix usage of create-project with local filesystem repos
4 years ago
Jordi Boggiano
a2ab6f2b54
Add support for multiple --repository additions in create-project, and make --add-repository delete the lock file, fixes #8853
4 years ago
Shaun Johnston
b4ecca5d0b
Supply event dispatcher in Create Project Command
...
This update allows composer plugins to intercept the
create-project command to inject additional functionality such as
providing additional remote filesystem handling.
4 years ago
Jordi Boggiano
05dacbdabb
Rename DEV_MASTER_ALIAS to DEFAULT_BRANCH_ALIAS
4 years ago
Jordi Boggiano
085fe4e7e5
Add --no-progress support and a few more fixes
4 years ago
Jordi Boggiano
c9571f90b4
Run phpstan with regular output and then run again to cs2pr if there was an error, to keep usable output in CI logs
4 years ago
Jordi Boggiano
a4a617abb4
Reduce amount of Filesystem/ProcessExecutor instantiations, add lots of docblocks
4 years ago
Jordi Boggiano
816d8e9d1b
Fix phpstan error
4 years ago
Jordi Boggiano
396ad87fd0
Add handling of ctrl-C on windows for php 7.4+
4 years ago
Jordi Boggiano
c8efb50d39
Change the single requirement ignore from --ignore-platform-reqs=xx to --ignore-platform-req=xx to avoid BC issues
4 years ago
Jordi Boggiano
e85da00dff
Add a way to ignore only some packages in --ignore-platform-reqs, and make the platform check ignore those packages which were ignored as requirements, fixes #8861
4 years ago
Jordi Boggiano
beded906ba
Merge branch '1.10'
4 years ago
Jean-Michel DELEHAYE
42fc372e52
Add function_exists() for 'pcntl_signal'
4 years ago
Jordi Boggiano
1ef352751c
Fix display issue in create-project when installing dev-master
4 years ago
Jordi Boggiano
1d68e85433
Fix usage
4 years ago
Jordi Boggiano
8a2dd1baef
Adjust all usages of VersionSelector to the new API
4 years ago
Jordi Boggiano
8a83d5cc35
Fix create-project command
5 years ago
Jordi Boggiano
d63eb8179e
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
5d970022e8
Normalize output of create-project target path, refs #8609 , refs #8412
5 years ago
Volker Killesreiter
e532e70b22
Revert "Chore: Use consistent directory path"
...
This reverts commit 43e0321ee7
.
5 years ago
Jordi Boggiano
bc002ae1fb
Merge branch 'master' into 2.0
5 years ago
Stephan Vock
2a564a9f36
Create project: add option to add the repository to the composer.json
5 years ago
Jordi Boggiano
2f4ea3a463
Fix show command, refactor RepositorySet constructor
5 years ago
Jordi Boggiano
f6b3f12107
Merge branch 'master' into 2.0
5 years ago
Jordi Boggiano
3b0339802b
Fix install manager usage
5 years ago
Jordi Boggiano
29612e8e8e
Remove dead code
5 years ago
Jordi Boggiano
006985a0ea
Execute all operations at once which lets us download all packages in parallel then install only once all downloads succeeded, fixes #2847
...
This also changes the PRE/POST_PACKAGE_INSTALL/UPDATE/UNINSTALL events to have less information available on them, repositorySet, request and policy are gone
5 years ago
Nils Adermann
bf99f1a341
Fix RepositorySet constructor calls to use new signature
5 years ago
polarathene
43e0321ee7
Chore: Use consistent directory path
...
Only when a install directory was not specified, was the CWD prepended to `$directory`. This change provides consistency in paths displayed to the user.
5 years ago
polarathene
1b2582ff5b
Chore: Improve create-project install UX
...
Provides feedback output before a potentially long wait on getBestCandidate() call on slow network connections where unresponsiveness/hang may be assumed.
5 years ago