362 Commits (e103ee0249ca2b0e513a79280ab19cda87778c99)

Author SHA1 Message Date
Helmut Hummel b1ec99faed Extract binary installation and removal to own class
The functionality to install binaries might be useful
for other installers.
Create API for that by extracting this functionality from
the LibraryInstaller class.
8 years ago
Haralan Dobrev cc389d6c1a List project suggestions in create-project command
Resolves https://github.com/composer/composer/issues/2752
8 years ago
Jordi Boggiano 9d95456bb0 Fix bug in handling of special chars in proxy .bat files for binaries, fixes #4990 8 years ago
Jos 51d4c930ef Fix for cygwin if $dir contains spaces
Without the quotes cygpath will interpret the filename (containing spaces) as two or more different files. This results in the value of $dir being incorrect.
8 years ago
Niels Keurentjes 72a3563f1e Removed some 3 year old backward compatibility code. 9 years ago
Niels Keurentjes 0dab63e050 Unified all Windows tests throughout the code. 9 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 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 966a982738 CS fixes 9 years ago
Jordi Boggiano d98b134dc3 Fix removal of packages installed in custom path with custom installers not overriding uninstall, fixes #2232 9 years ago
Jordi Boggiano 615638c7c3 Simplify bin-compat by removing the nosymlink option, refs #3704 9 years ago
Jordi Boggiano c9b51a5751 Merge remote-tracking branch 'kocsismate/feature-bin-compat' 9 years ago
Jordi Boggiano ebe0c8d79c Fix issue #3229, refs #3184 9 years ago
Jordi Boggiano 90a90e22de Merge remote-tracking branch 'Wirone/unixy-proxy'
Conflicts:
	src/Composer/Installer/LibraryInstaller.php
9 years ago
Jordi Boggiano 3d9daea6a0 CS fixes 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
Gavin Staniforth c1e60a0abd Ensure the bin directory exists before checking empty
Line 130 has similar logic so avoided doing the check withiin `isDirEmpty()`
9 years ago
Jordi Boggiano 80f1e4372a Remove empty bin dir after all binaries have been removed from it, fixes #3451 9 years ago
Kocsis Máté 87c16073ec Merge branch 'master' of https://github.com/composer/composer into feature-bin-compat 9 years ago
Jordi Boggiano 79f9158fb2 Merge pull request #4192 from localheinz/fix/import
Fix: Add missing imports
9 years ago
Jordi Boggiano 70f5150893 Merge pull request #4190 from localheinz/fix/unused-private-property
Fix: Remove unused private property
9 years ago
Andreas Möller 12ffe2b4d4 Fix: Add missing imports 9 years ago
Andreas Möller 3854d2d457 Fix: Remove unused private property 9 years ago
Andreas Möller eac5fbdee4 Fix: Remove unused imports 9 years ago
Markus Thielen bd802407a8 Silence symlink() error
If not silenced it gives "symlink(): Operation not supported" on my ubuntu system with mounted cifs share.
9 years ago
Kocsis Máté f385518e1a Fixed merge conflict 9 years ago
Kocsis Máté 985c49d47c Removed unnecessary cwd 9 years ago
Kocsis Máté 38c26ae26b Added Symlink utility class 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 09da587ee2 Forward args 9 years ago
Jordi Boggiano 074a748675 missing use statements :s 9 years ago
Jordi Boggiano 3efed220a6 Clean up event dispatching code and make package events extend installer events 9 years ago
Kocsis Máté 08c4732d1e Improving bin-compat configuration 10 years ago
Kocsis Máté 6a776c5edf Supporting bin_compat option 10 years ago
Jordi Boggiano 2b16a73659 Load plugins before purging packages, fixes #3557 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano efcdb394d3 Rename *-solve-dependencies to *-dependencies-solving 10 years ago
Jordi Boggiano 81fa284c9b Merge remote-tracking branch 'francoispluchino/installer-events' 10 years ago
frederik d1d40502bf ProcessExecutor::escape 10 years ago
frederik 7ae1430689 #3297 ProcessUtil class using ProcessUtil of Symfony Console 10 years ago
Grzegorz 'Wirone' Korba fb26187449 Comment changes (just for re-run Travis tests) 10 years ago
Grzegorz 'Wirone' Korba e20668b321 Restore '#!/usr/bin/env sh' shebang 10 years ago
Grzegorz 'Wirone' Korba 0558bf0079 generateUnixyProxyCode() properly supporting Cygwin & Git Bash
Based on Composer's proxy: https://github.com/composer/windows-setup/blob/master/src/shims/composer
10 years ago
François Pluchino 1067ce4f96 Add installer events 10 years ago
Jordi Boggiano 745dcbce33 Fix file deletions to always use a delayed retry on windows, fixes #3074 10 years ago
Jordi Boggiano b232a31815 Fix --no-plugins support in installation manager, fixes #3031 10 years ago
Jordi Boggiano 56c5af8dc4 realpathGlob tweaks, refs #2932 10 years ago
Richard Quadling 443858dae7 Force all glob results to be realpath'd. 10 years ago
Igor Wiedler c0086ba1e3 Clarify log messages when skipping existing bins 10 years ago
Nils Adermann 54b8831131 Revert "correct small bug, source files aren't installed and removed from the same path (problem with targetDir package attribute)"
This reverts commit 79a4c5cac1.
11 years ago
Pierre-yves Christmann 79a4c5cac1 correct small bug, source files aren't installed and removed from the same path (problem with targetDir package attribute) 11 years ago
Jordi Boggiano 8398c9f2ab Fix target-dir update checks, fixes #2395 11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Jordi Boggiano 4989940533 Merge pull request #2317 from xrstf/installer-binaries
attempted fix for #1589 (installers & binaries)
11 years ago
Christoph f0842213e0 make sure relative paths from custom installers to not break the installation of binaries 11 years ago
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Jordi Boggiano 05ffc605f1 Ignore chmod failures, fixes #1854 11 years ago
Jordi Boggiano 3f6227a996 Add workaround for php bug 53460 glob() can return false, fixes #2278 11 years ago
Jordi Boggiano 807600b255 Fix edge case where one adds a target-dir on a package that didnt have one before, refs #2279 11 years ago
Karoly Negyesi 1a69d0a2a7 style fixes 11 years ago
Karoly Negyesi f4e9c74fee style fixes 11 years ago
Karoly Negyesi c6ec739766 allow injecting a mock filesystem into LibraryInstaller and fix LibraryInstallerTest 11 years ago
Karoly Negyesi b333d7a485 act on target-dir changes during update 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 2f43e9aefb Load installed plugins at appropriate time and adapt tests accordingly 11 years ago
Nils Adermann eb966d347f Implement a plugin manager and interface, update installer plugin tests 11 years ago
Nils Adermann 01a08a2ff3 As preparation for composer plugins, rename custom installers to plugins 11 years ago
Jordi Boggiano 02828a81d2 Merge remote-tracking branch 'Rarst/fix-winproxy-quotes' 11 years ago
Martin Hasoň b1c4eed57f Throw exception if the local repository does not contain a package to uninstall 11 years ago
Elenor 2a33a7bed6 Allow whitespace in installers - fix for issue #2071
Custom installers can have the class definition indented.
11 years ago
Andrey Savchenko e9522e29dd Removed quotes that escaping generated inside of path in win proxy script
Fixes #2040
11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Jordi Boggiano 1debe22412 Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946, fixes #1839 11 years ago
Josiah ce71dfb10e Update InstallerInterface.php
Fixed an incorrect documentation variable reference
11 years ago
qcho d4fb403fd7 Fix case where PHP's symlink returns false without any error or warning. 11 years ago
Jordi Boggiano 57fe33d0f3 Make sure the directory is empty even if weird inputs are given, fixes #1683 11 years ago
Jordi Boggiano 0d06eb1f9a Avoid overwriting existing windows .bat proxies if they were provided by the package 11 years ago
Jordi Boggiano 1071048e52 Merge remote-tracking branch 'miklosm/iss1675.2' 11 years ago
Miklós Márton 661df121d9 Proposed fix for #1675 11 years ago
Miklós Márton 42346ad837 Fix for ordering problem during package removal resulting dangling symlinks, partially fixes #1675 11 years ago
Jordi Boggiano 542d10d8fd Remove all occurrences of getLocalDevRepository and getLocalRepositories calls 12 years ago
Jordi Boggiano 2a23f8c48b Allow create-project to be called in an empty dir that exists, fixes #1135, replaces #1206 12 years ago
Ronny López e5cbf83185 Added post-autoload-dump script event. 12 years ago
Fernando Mantoan df592d40de Solving the issue #1387 12 years ago
Jordi Boggiano 4965fb599c s/return/continue/ 12 years ago
Jordi Boggiano a8f74a0983 Allow notification from locked installs, fixes #1368, fixes #1372, fixes #1369 12 years ago
Jordi Boggiano e868c9706b Add support for batch notifications 12 years ago
Jordi Boggiano de3188ca7d Remove target dir for classmap autoloads of the root package, fixes #1308 12 years ago
Jordi Boggiano 6206d0bc9c Make unix proxies work with spaces in paths 12 years ago
Djordje Kovacevic d92ccd111d Fixed library installer windows .bat generator 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Jordi Boggiano e1e7141ae9 Apply updates in the NoopInstaller 12 years ago
Mateusz Heleniak 4e638009ab fixed generated windows proxy file for *.exe 12 years ago
Jordi Boggiano e0dc045955 Merge pull request #1054 from mheleniak/clean_up_bat_files
Clean up *.bat files when binary is removed
12 years ago
Benjamin Lévêque 042d2d4a77 readlink -f is missing on osx
+ osx can't execute a script with an another script
12 years ago
Mateusz Heleniak 924d39f405 also clean up *.bat files 12 years ago
Jordi Boggiano b96c1dd5fa Prevent missing bins from breaking the whole install 12 years ago
Jordi Boggiano ef637c8f1a CS fixes 12 years ago
Jordi Boggiano 269b3481c4 Fix PEAR binaries when the bin dir is non standard, fixes #1001 12 years ago
Johannes M. Schmitt 88a1f27798 added a way to disable custom installers 12 years ago
Alexey Prilipko 22d41845ae Exclude dirs from list of binaries 12 years ago
Alexey Prilipko bc2d30492a Add php proxies to replacement vars. 12 years ago
Alexey Prilipko 3bdae180f6 Add php proxies that add all locally installed packages to include_path. PEAR binaries are run through these proxies. 12 years ago
Jordi Boggiano 74da2f6730 Remove unnecessary code 12 years ago
Alexey Prilipko 9ba3deb91b Fix text spacing and remove excess getInstallPath call in LibraryInstaller::update 12 years ago
Alexey Prilipko 59773dd9f6 Use trim filter on 'php' location 12 years ago
Alexey Prilipko ac3cebc633 Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
12 years ago
Nils Adermann d84273ee34 Merge pull request #833 from Seldaek/installmgr_cleanup
Use the config object to define the vendor dir and not the installation manager
12 years ago
Jordi Boggiano b876dcbafb Use the config object to define the vendor dir and not the installation manager 12 years ago
Jordi Boggiano a4c829749e Expose the whole composer context to the custom installers, fixes #672 12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano 6e90c0be51 CS fixes 12 years ago
Jordi Boggiano a518f471f7 Ensure aliases are removed from local repos when a package is deleted from the filesystem 12 years ago
Jordi Boggiano e953b4c891 Ensure vendor dir is initialized before generating the install path of a package 12 years ago
Jordi Boggiano b92a19ce4b Fix windows bin proxy when there are spaces in the path 12 years ago
Jordi Boggiano 935eaa9646 Fix windows proxy code 12 years ago
Jordi Boggiano d21032ace5 CS fixes 12 years ago
Andrew Short e0a1d9ef58 Support multiple installers in a composer-installer package. 12 years ago
Jordi Boggiano 4afca78daa Add missing class 12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano 6864555aa4 Do not notify installation of aliases 12 years ago
Nils Adermann 0c1944a9d0 Let the solver handle aliases instead of the installer 12 years ago
Jordi Boggiano 90732fd03f Clean up vendor dir after a package was removed 12 years ago
Jordi Boggiano f7440076fa Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
This reverts commit 2988152602, reversing
changes made to adb4188e12.
12 years ago
Jordi Boggiano 2988152602 Merge remote-tracking branch 'naderman/remove-packages-by-default' 12 years ago
Jordi Boggiano bd50ad32f0 Refactor InstallationManagerMock 12 years ago
Jordi Boggiano 2dffa612a3 Merge remote-tracking branch 'igorw/root-install-twice' 12 years ago
Jordi Boggiano 22a825fc07 Clean up vendor dir after a package was removed 12 years ago
Igor Wiedler 8d71030cc1 [Installer] Classic var_dump must be removed 12 years ago
Igor Wiedler aa4ececa2a [Installer] Make bin symlinks relative, closes #620 12 years ago
Igor Wiedler b83422b051 [Installer] Fix removeBinaries, closes #567 12 years ago
Igor Wiedler 0995933183 Do not install root package as a vendor if some dependency requires it, closes #480
Also add some tests for the installer.
12 years ago
Jordi Boggiano 903facd64f Make sure the anti-aliased package contains the alias info from the correct alias 12 years ago
Jordi Boggiano 4a55d85a2d Respect umask in chmod calls 12 years ago
Jordi Boggiano bf6fd10a8a Make use of the proper interface 12 years ago
Jordi Boggiano e12b0e842d Fix project installer, fixes #587 12 years ago
Jordi Boggiano 89e095b4b5 Handle --dev installs/updates 12 years ago
Jordi Boggiano b094ef7155 Add repository notification API support 12 years ago
Mike van Riel a01366e3f5 Added ->io to the creation of composer installers to match signature of LibraryInstaller; this will enable users to extend LibraryInstaller and use the same facilities 12 years ago
Jordi Boggiano ceac0ca75b Fix updating of already installed dev packages, fixes #496 12 years ago
Jordi Boggiano 87c1629ebc Fix isInstalled detection broken by metapackage installer 12 years ago
Jordi Boggiano 583a0b5f0d Lazy-init the bin directory, fixes #364 12 years ago
Jordi Boggiano ab55490254 Merge remote-tracking branch 'hason/metapackage' 12 years ago
Jordi Boggiano cdfcaface4 Merge remote-tracking branch 'hason/vendordir' 12 years ago
Brikou CARRE 3ae860f485 fixed issue #486 12 years ago
Martin Hasoň c85ae48e5d Vendor dir can be outside the current working directory 12 years ago
Benjamin Eberlei bbf745f3e6 Add command to install a package as a new project into a non-existant directory. This fetches the given package from packagist or a different packagist-source and installs it into a given path. 13 years ago
Jordi Boggiano 0b7ee194c6 Remove persistence of alias data, make abstract branch aliasing and keep it in composer only 13 years ago
Martin Hasoň 528a058e40 Added installer for metapackages 13 years ago
Jordi Boggiano 59d2b1145c Add lock file alias support and a bunch of fixes 13 years ago
Jordi Boggiano f9fc9695e9 Wrap the package in an aliased package instead of replacing 13 years ago
Jordi Boggiano 3fe87b1e35 Force dev packages to be installed from source 13 years ago
Jordi Boggiano f54b04aac8 Restore realpath behavior 13 years ago
Wookieb 2467456d3f Fix installer that create vendor and bin directory even if --dry-run parameter provided
* Move directories creation from constructor to "install" and "update" method
* Tests for LibraryInstaller
13 years ago
Beau Simensen 3cbbe1fd82 No need for group or world write permissions. 13 years ago
Beau Simensen 04f0ecfc01 Change permission of bin links if they exist and are already links 13 years ago
Jordi Boggiano 5da021ffa7 Moved Filesystem to base Util namespace 13 years ago
Jordi Boggiano d35a1a4a9d Stylistic fixes to the previous merge 13 years ago
digitalkaoz 3d43bdce45 refactored install 13 years ago
digitalkaoz 4d0fae688e removed replace, reinstalling as install 13 years ago
digitalkaoz 30e89a2402 fixed broken packages on filesystem 13 years ago
Jordi Boggiano 434c9ecdeb Cleanups of IOInterface 13 years ago
François Pluchino 0f9dcc9618 Remplace all echo with writeln method of IO 13 years ago
Jordi Boggiano 4a10850759 Fix output 13 years ago
Sebastian Kurfuerst 03e627e444 Fix fatal error if class is not specified 13 years ago
Jordi Boggiano 2ba48b58db Preserve case of packages for installations 13 years ago
Jordi Boggiano 3be6511af7 Fix unixy proxy under git-bash 13 years ago
Jordi Boggiano f0d8626993 Cleanups 13 years ago
Jordi Boggiano 7e3f8099b1 Add proxy files for windows instead of copying, removed PEAR-style substitution 13 years ago
Jordi Boggiano aa94918d50 Add binaries support in composer 13 years ago
Jordi Boggiano 68512714f4 Fix update command by using remove+install (and for now ignoring uninstalls of non-existing packages) 13 years ago
Jordi Boggiano cb44ba8325 Fix autoload handling of main project 13 years ago
Jordi Boggiano f5b7e968b2 Minor adjustments to merged PR 13 years ago
Ant Cunningham e0400773f7 Adding support for configurable vendor path in composer.json. 13 years ago
Jordi Boggiano 1a7bf8a7f8 Bugfixes 13 years ago
Jordi Boggiano b7f6cf69ab Add tests and fixes some issues 13 years ago
Jordi Boggiano d4b7f802df Fix typos 13 years ago
Jordi Boggiano c8859240d2 Add InstallerInstaller, refactored AutoloadGenerator, fixes #59 13 years ago
Jordi Boggiano 82c1170fa1 Allow any package type to be installed by the default installer, fixes #86 13 years ago
Jordi Boggiano 8aaac35ca1 Make installer type case insensitive 13 years ago
Jordi Boggiano 4904e76185 Install every package in its own directory, fixes #73 13 years ago
Jordi Boggiano b667cf98c2 Clone added packages in update 13 years ago
Jordi Boggiano 2b15c4321b Typo fix 13 years ago
Jordi Boggiano c33fc80d23 Add supports() to the InstallerInterface 13 years ago
Jordi Boggiano 28369ea623 Add missing docblock 13 years ago
Igor Wiedler 72a1f66b7a rename installAs to target-dir 13 years ago
Igor Wiedler 409b2e47ae return early (this is very important) 13 years ago
Igor Wiedler ea31039556 [autoload] autoloading prototype 13 years ago
Jordi Boggiano 544067ced9 Packages can't be added to two repos at once 13 years ago
Jordi Boggiano b9114e16be Fix typos, short var names etc 13 years ago
everzet 20318f77a0 Refactored FilesystemRegistry to FilesystemRepository 13 years ago
everzet 2fc0699492 Moved operations evaluation into new InstallationManager class 13 years ago
everzet 6133108710 Refactored LibraryInstaller to use WritableRepository instead of Registry 13 years ago
everzet 123f5fef77 Refactored Operations in order to fulfill naderman requests 13 years ago
everzet 0a1e7320b0 Refactored solver result array. Now it returns array of operation objects which are much nicer to work with 13 years ago
everzet 0a2f4e7e32 Installer now provides full download path to the downloader 13 years ago