Peter Michaux
32eb156153
add example showing alternate syntax for specifying version
8 years ago
Niels Keurentjes
692a3ed300
Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes.
8 years ago
Niels Keurentjes
4fe063b2e5
Added missing deprecation warning in create-project.
8 years ago
Rob Bast
f829a160fb
use a proper tmp directory
...
this test failed on OSX before, trying to create a directory at the root of the filesystem
9 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Niels Keurentjes
c2e768b8ad
Made Silencer invocations safer against exceptions.
9 years ago
Niels Keurentjes
18cd4f966b
Added silencer utility to more gracefully handle error suppression without hiding errors or worse. Fixes #4203 , #4683
9 years ago
Jordi Boggiano
d7c61c50ad
Merge branch 'tls-config'
9 years ago
Jordi Boggiano
03299ff075
Suggest https in docs where it makes sense, closes #4056
9 years ago
Jordi Boggiano
f8dff0867c
Remove --disable-tls/--cafile flags and rely solely on config options plus some wording clarifications
9 years ago
Jordi Boggiano
5d015defb8
Merge remote-tracking branch 'origin/master' into tls-config
9 years ago
Jordi Boggiano
29312be4df
Strict typing fixes
9 years ago
Jordi Boggiano
4b269f4ded
Follow stability option in create-project to select the best possible version, refs #4563
9 years ago
Jordi Boggiano
ef2856ef55
Take php version into account for create-project command version selection
9 years ago
Boris Momčilović
b05b52ff7e
InstallationManager: notifyInstalls: append authorization header for repository
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Rob Bast
ddb1c1e052
these 2 use parseNameVersionPairs
9 years ago
Rob Bast
a1427d7fd6
replace all occurences in code and comments
9 years ago
Olivier Laviale
cc522c20bb
Optimized this->getIO()
9 years ago
Kunal Mehta
f634c6946d
Update callers of VersionParser::formatVersion()
...
Tests were moved to BasePackageTest.
9 years ago
Jordi Boggiano
6a64041055
CS fixes
9 years ago
Jordi Boggiano
e727ed4d73
--keep-vcs should only imply prefer source for the root package in create-project, refs #4063
9 years ago
Nils Adermann
75c501251d
Revert "Merge remote-tracking branch 'naderman/load-no-providers'"
...
This reverts commit 3e85f82373
, reversing
changes made to b025d0982b
.
9 years ago
Jordi Boggiano
3e85f82373
Merge remote-tracking branch 'naderman/load-no-providers'
9 years ago
Barys Biankouski
a59c46f781
[create-project] If process terminated with SIGINT then 130 IMO will be returned. Remove unused variable
9 years ago
Barys Biankouski
38bc4e6a78
Added Ctrl+C support to create-project command for unix-like systems
9 years ago
Jordi Boggiano
98b339e87a
Make --keep-vcs imply --prefer-source, closes #4063
9 years ago
Nils Adermann
ec5416f03c
loadDev parameter is nonsense, properly load packages in create command
9 years ago
Jordi Boggiano
b80038804f
Fix env override regression, fixes #3820
9 years ago
Francis Besset
4f57fafb8d
[create-project] Used no progress value for dependencies
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
Padraic Brady
510ec6b91c
A couple of minor omissions from the merge
10 years ago
Padraic Brady
19e24c5804
Merge branch 'master' into tls-config
...
Conflicts:
.travis.yml
doc/03-cli.md
src/Composer/Command/ConfigCommand.php
src/Composer/Command/CreateProjectCommand.php
src/Composer/Command/DiagnoseCommand.php
src/Composer/Command/InstallCommand.php
src/Composer/Command/RequireCommand.php
src/Composer/Command/SelfUpdateCommand.php
src/Composer/Command/ShowCommand.php
src/Composer/Command/UpdateCommand.php
src/Composer/Config.php
src/Composer/Downloader/FileDownloader.php
src/Composer/Factory.php
src/Composer/Repository/ComposerRepository.php
src/Composer/Repository/PearRepository.php
src/Composer/Repository/Vcs/VcsDriver.php
src/Composer/Util/GitHub.php
src/Composer/Util/RemoteFilesystem.php
10 years ago
Jordi Boggiano
8d0c1a14b3
Add --ignore-platform-reqs to create-project, refs #1426
10 years ago
Jordi Boggiano
3ff8bcffea
Allow loading of real composer repos by local path, fixes #1899
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Ryan Weaver
aea2e901a9
Extracting logic into a new class related to selecting the latest version
...
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
10 years ago
Ryan Weaver
58535a62fa
[ #2492 ] Automatically using the latest version when requiring a package
...
This applies to the init and require commands.
Previously:
If you ommitted the version of a library, it prompted you to enter a version.
New Behavior:
If you omit the version, it automatically selects the latest version that is consistent
with your minimum-stability flag.
Is Jordi mentions, this is consistent with how npm works.
10 years ago
Ryan Weaver
947db97e33
[ #2492 ] Removing an unused variable and use statement, fixing phpdoc
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Stephan Hochdörfer
493ebbaacb
Fix to load the auth information before the root package gets installed.
10 years ago
Jordi Boggiano
b437c1cc05
Support github auth directly in the RemoteFilesystem class
10 years ago
Pierre du Plessis
244e865a35
Fix typo
10 years ago
Pádraic Brady
306ba77e93
Implement the RemoteFilesystem Factory everywhere...
...
- also fixes impacted test
10 years ago
Pádraic Brady
d8cbd9f057
Expand cli TLS options to other commands + misc fixes
10 years ago
Sandy Pleyte
ee62ec60f0
Remove old comment
10 years ago
Sandy Pleyte
ab8f67e8cf
Always use rootPackage config
10 years ago
Sandy Pleyte
9af5eaa574
Refactored the code with the switch statement.
10 years ago
Sandy Pleyte
bc7c93ae85
Fix for #1966 , use the preferred-install from the rootPackage config to install the dependencies.
10 years ago
Jordi Boggiano
e126c92525
Fix exit codes, cc @tyrael
11 years ago
Bilal Amarni
61cc291c8a
[CreateProject] allowed pretty version constraint
11 years ago
Jordi Boggiano
6e4e10620a
Merge remote-tracking branch 'gerryvdm/feature'
...
Conflicts:
src/Composer/Command/CreateProjectCommand.php
11 years ago
Jordi Boggiano
3f6227a996
Add workaround for php bug 53460 glob() can return false, fixes #2278
11 years ago
Gerry Vandermaesen
eb72e1692c
Added --no-install option to create-project command
...
Added a --no-install option to the create-project command that
skips installation of the dependencies in the newly created
project.
11 years ago
Nils Adermann
242c58c789
Merge pull request #2179 from naderman/plugins
...
Plugins
11 years ago
Jordi Boggiano
80184b87d1
Fix undefined index error, fixes #2224
11 years ago
Nils Adermann
15ac7be6f1
Fix disabling plugins which has to happen in the factory now
11 years ago
Nils Adermann
f0b45099c1
Correct authorship info for files I edited
11 years ago
Nils Adermann
b83535d2d9
Add back --no-custom-installers option with a deprecated warning
11 years ago
Nils Adermann
01a08a2ff3
As preparation for composer plugins, rename custom installers to plugins
11 years ago
Jordi Boggiano
f9ce367c10
Remove dangling vendor/composer dir after create-project, fixes #2025
11 years ago
Jordi Boggiano
22c7d4119f
install and create-project now default to dev mode (use --no-dev for production installs)
11 years ago
Tobias Munk
c1cae8d838
updated events to use composer from Factory
...
PSR-0 autoloading is now handled correctly
11 years ago
Tobias Munk
27b3f338e9
added TODO
11 years ago
Tobias Munk
60f96d5135
fixed post-create-project-cmd event
...
event occurs after autoloader is generated and refreshed
11 years ago
Jordi Boggiano
f0327caaa1
Cleanups
11 years ago
Tobias Munk
5586fa717b
added author
11 years ago
Tobias Munk
337f817ba3
adjusted script event name
11 years ago
Tobias Munk
c0280256bf
code refactoring
11 years ago
Tobias Munk
0ac5165f04
updated script events
...
added new POST_ROOT_PACKGE_INSTALL and POST_CREATE_PROjECT event, triggered only in create-project
changed create-package parameter 'package' to be optional, command now looks in working directory for composer project if no param is given
11 years ago
Jordi Boggiano
bebe86262a
Refactor self.version update to work on all link types, refs #1883
11 years ago
Sam Minnee
d3437d6e76
NEW: Rewrite self.version in create-project ( Fixes #1351 )
...
When composer create-project is called and the resulting project is disconnected from the
parent repo, self.version references no longer work. To fix that, this patch rewrites
self.version to the actual version number as part of 'composer create-project' execution
11 years ago
Jordi Boggiano
6da31f7c2b
Add handling of preferred-install config in create-project, fixes #1780
11 years ago
Galymzhan
47442b6e39
change parameter order to preserve BC
12 years ago
Galymzhan
f59181d7d5
add support for --no-progress, fixes #621
12 years ago
Jordi Boggiano
a8f74a0983
Allow notification from locked installs, fixes #1368 , fixes #1372 , fixes #1369
12 years ago
Jordi Boggiano
dee9bcb9f1
Add --stability and support for package:version and package=version to create-project, fixes #957
12 years ago
Jordi Boggiano
85bbf99817
Fix deletion of vcs dirs, fixes #1260
12 years ago
Pascal Borreli
5eead93250
Fixed typos
12 years ago
Jordi Boggiano
c7b26c8d82
Return 1 if installation of deps failed, fixes #936
12 years ago
Jordi Boggiano
ba96f9f6b5
Clarify conditional
12 years ago
Ulrich Kautz
051118c500
Check for necessity of VCS cleanup when --prefer-dist is used (only project package, so far)
12 years ago
Ulrich Kautz
4f4cbc17d9
Added "--prefer-dist" option to create-project command
12 years ago
Jordi Boggiano
8949d43dca
Remove VCS info from the root dir only, fixes #1229
12 years ago
Jordi Boggiano
110044c3ea
Fix up create-project command
12 years ago
Grégoire Pineau
1dd04cb715
Removed useless code
12 years ago
Grégoire Pineau
6f9c3427b6
Create-project command remove all VCS history
...
In fact, there are some issues with create-project command.
When people create project with composer, they do not think to
delete main .git folder. So they embed 3th history in theirs own
repository. (see
https://connect.sensiolabs.com/profile/jmoati/project/gitoliteadmin
for instance)
More over, people may not use git.
12 years ago
Jordi Boggiano
5b419c76ca
Fix tests
12 years ago
Martin Hasoň
3b6bd761ec
Set protocols for github in composer config file
12 years ago
Jordi Boggiano
f9f86f03ae
Performance improvements to create-project
12 years ago
Jordi Boggiano
e1bd2fd6df
Clean ups after feedback
12 years ago
Jordi Boggiano
a0903d4d35
Update create-project and show commands to use the new filterPackages method
12 years ago
Clément Gautier
d87d010c35
Fixed typo
12 years ago
Johannes M. Schmitt
48662e9b17
added no-scripts option
12 years ago
Johannes M. Schmitt
88a1f27798
added a way to disable custom installers
12 years ago
Jordi Boggiano
011db77876
Output message before altering the source ref, fixes #851
12 years ago
Jordi Boggiano
9333579ef1
Notify installs via create-project
12 years ago
Jordi Boggiano
3ac11b932c
Expose default repositories in system config file
12 years ago
Jordi Boggiano
4a6ae454c2
Merge remote-tracking branch 'dpb587/multiple-repos'
...
Conflicts:
src/Composer/Factory.php
src/Composer/Package/Loader/RootPackageLoader.php
tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
12 years ago