Jordi Boggiano
9824d339b6
Escape arguments, refs #6414
2017-05-16 22:18:19 +02:00
Jasper N. Brouwer
4ce39c75c7
Pass more ini directives when executing php
...
Not only pass the current value for "memory_limit" along when executing
php, but also do the same for "allow_url_fopen" and "disable_functions"
2017-05-16 22:14:20 +02:00
Jordi Boggiano
122e422682
CS fixes
2017-03-08 15:16:44 +01:00
Jordi Boggiano
1baa2a52d4
Make sure script running errors are always output even in quiet mode, fixes #6122
2017-03-06 10:45:03 +01:00
Jordi Boggiano
7aa7c3ced3
Forward composer memory_limit to child processes, fixes #6075
2017-01-22 19:03:22 +01:00
Jordi Boggiano
e4840ee413
Add a COMPOSER_BINARY env var so that chdir does not affect @composer script resolvability, fixes #6080
2017-01-22 18:26:49 +01:00
Jordi Boggiano
98c5f825e0
Fix tests and regression in @ref script handling
2016-12-11 16:37:55 +01:00
Jordi Boggiano
b0000617cc
Support @php prefix for scripts to reuse the current PHP interpreter, fixes #5957
2016-12-11 16:17:34 +01:00
Fabien Potencier
07cbb73184
fixed deprecated class usages
2016-10-31 06:57:17 -07:00
Jordi Boggiano
ec2660fe78
Fix regex escaping, fixes #5674
2016-09-13 16:18:05 +02:00
Jordi Boggiano
2ffa1148a9
Merge branch '1.2'
2016-09-12 19:06:26 +02:00
Den Girnyk
71e0fba216
Pass devMode from RunScriptCommand to Script\Event
2016-09-12 17:20:51 +02:00
Jordi Boggiano
2d8251b7ad
Fix handling of local binaries on windows, refs #5612
2016-09-10 12:51:53 +02:00
David Jack Wange Olrik
2c84be47c2
Add support for seamless execution of local binaries
...
Projects that add binaries to `vendor-bin` can now execute those via the same command as projects that consume them without installing them first.
In list overview local commands have a `(local)` tag to distinguish them from commands installed in `vendor-bin`.
Local binaries take precedence over `vendor-bin` which takes precedence over binaries in path.
2016-08-21 16:57:19 +02:00
Jordi Boggiano
aaf2c06e7b
Add ScriptExecutionException for CLI scripts and avoid showing the full exception to users, fixes #5281
2016-05-05 13:26:26 +01:00
Jordi Boggiano
a67b127a1a
Add deprecation notice for the event type hint rewrites, refs #5238
2016-04-24 15:48:48 +01:00
Jordi Boggiano
60ce2324bc
Add ability to call composer from scripts using @composer XXX, fixes #5153
2016-04-11 19:03:32 +01:00
Jordi Boggiano
c45cc912ab
Warn when referencing unknown scripts
2016-04-11 18:49:22 +01:00
Jordi Boggiano
1f0b01e70d
Merge remote-tracking branch 'watermanio/strict-types' into 1.0
2016-04-11 15:11:46 +01:00
Jordi Boggiano
3b0a1c6f70
Run cs fixer and update config to latest master
2016-04-11 15:06:57 +01:00
Niels Keurentjes
818c3e707a
Ton of phpDoc fixes.
2016-04-07 01:12:30 +02:00
Andy Waterman
d4207ff49f
Strict type checks of null and bool
2016-04-06 20:55:53 +01:00
Jordi Boggiano
f542b0f32d
Only use Path if it is actually available, refs #5114
2016-03-26 09:49:28 +00:00
nishiyama
8b221905ca
fix path info
2016-03-25 20:04:43 +09:00
Jordi Boggiano
934be204a2
Simplify exec implementation and add full PATH support, refs #4887
2016-02-25 12:15:38 +00:00
Jordi Boggiano
2609cfdd1d
Always set bin-dir into PATH before calling scripts, fixes #4852 , closes #4898
2016-02-10 14:11:05 +00:00
Jordi Boggiano
49d7d65933
Add verbosity input support to IOInterface
2016-01-29 10:14:12 +00:00
Jordi Boggiano
adc0bbeeb9
Forward args/flags down to referenced events
2015-11-14 14:02:47 +00:00
Jordi Boggiano
24ccaa328d
Tweak output of calls to script references, refs #4592
2015-11-14 13:52:26 +00:00
Giorgio Premi
fd0026b542
Detect infinite script call recursion
2015-11-09 15:34:11 +01:00
Giorgio Premi
a25492d1b9
Allow composer script call with @ syntax
2015-11-09 15:34:11 +01:00
Jordi Boggiano
ce08582671
Fix CS
2015-09-28 10:53:24 +01:00
Jordi Boggiano
a8d71be0ef
Add event name in verbose mode, refs #4123
2015-07-04 12:15:04 +01:00
Jordi Boggiano
852e4f4e26
Merge remote-tracking branch 'alcohol/output-script-command-in-verbose-mode'
2015-07-04 12:11:18 +01:00
Andreas Möller
12ffe2b4d4
Fix: Add missing imports
2015-06-28 23:37:40 -04:00
Rob Bast
fd34c5883a
added php script handler info as well
2015-06-24 09:21:36 +02:00
Rob Bast
9223f4a208
show command by default
2015-06-09 14:02:51 +02:00
Rob Bast
cbd61660ab
implemented verbose output
2015-06-09 09:02:43 +02:00
Jordi Boggiano
eadc167b12
Fix BC layer for events
2015-03-02 18:20:22 +00:00
Jordi Boggiano
82b7fdf4c1
Add BC for Script\Event instances, fixes #3811
2015-03-02 17:02:20 +00:00
Rob Bast
cb336a5416
Implement writeError throughout Composer
2015-02-25 11:00:35 +01:00
Jordi Boggiano
3efed220a6
Clean up event dispatching code and make package events extend installer events
2015-02-23 15:34:49 +00:00
Vladimir Kartaviy
9f0d36290b
Added missing variable
2015-01-12 22:48:19 +02:00
Jordi Boggiano
07ad1da3ac
Fix HHVM interop
2014-12-13 11:13:25 +00:00
Rob
d9b8b3611b
fixes composer/composer#3546
2014-12-12 22:33:04 +01:00
Rob Bast
113606be7b
should fix composer/composer#3382
2014-12-12 18:41:37 +01:00
André R
9e0a85fb64
Fix use of non existing ->getIO() function
2014-11-03 19:31:00 +01:00
Jordi Boggiano
94926218e8
CS fixes
2014-10-17 18:57:27 +01:00
Jordi Boggiano
4ce9252255
Avoid passing args to CLI handlers when none are needed, fixes #3332
2014-10-07 11:27:24 +01:00
Jordi Boggiano
81fa284c9b
Merge remote-tracking branch 'francoispluchino/installer-events'
2014-09-30 16:18:17 +01:00
frederik
d1d40502bf
ProcessExecutor::escape
2014-09-24 18:30:12 +02:00
frederik
7ae1430689
#3297 ProcessUtil class using ProcessUtil of Symfony Console
2014-09-24 17:18:15 +02:00
François Pluchino
1067ce4f96
Add installer events
2014-07-29 15:25:16 +02:00
Jordi Boggiano
0ce0cf42e8
Merge remote-tracking branch 'francoispluchino/fix-phpdoc'
...
Conflicts:
src/Composer/EventDispatcher/EventDispatcher.php
2014-07-23 19:19:39 +02:00
Jordi Boggiano
cec1627acf
Add top level aliases for nonstandard scripts and allow parameter passing, refs #2516
2014-07-20 21:55:24 +02:00
Jordi Boggiano
d9d8d09fe1
Add support for local binaries in scripts, refs #2516
2014-07-20 19:46:51 +02:00
Jordi Boggiano
33cedda708
Merge remote-tracking branch 'MaxGfeller/run-script-enhancement'
2014-07-20 19:07:45 +02:00
François Pluchino
8b5c00bff0
Fix phpdoc
2014-07-16 15:17:38 +02:00
Jordi Boggiano
5fb005631a
Tweaking dispatchScript method to be in line with the rest, and add devMode to *_AUTOLOAD_DUMP events
2014-03-01 21:22:01 +01:00
Pascal Borreli
2f4df9d459
Fixed typos
2013-12-27 11:51:01 +00:00
Max Gfeller
067a8e764f
Added a new method to check if an event has any listeners registered.
2013-12-19 08:48:41 +01:00
Max Gfeller
a12ed492ef
Don't throw exception in the doDispatch method.
2013-12-19 08:47:55 +01:00
Max Gfeller
f1c1ba27b4
Throw an exception if no listeners have been found for given event.
2013-12-19 07:58:58 +01:00
Jordi Boggiano
11a0d16ccc
CS fixes
2013-10-11 20:12:45 -03:00
Nils Adermann
5867d477be
Use call_user_func for PHP < 5.4 compatability and accept __invoke
2013-08-30 12:51:41 +02:00
Nils Adermann
3e1519cde0
Complete missing docblocks and fix incorrect ones
2013-08-30 12:51:41 +02:00
Nils Adermann
f00f5113bf
Fix typo
2013-08-30 12:51:41 +02:00
Nils Adermann
919a190153
Add an EventSubscriberInterface which may also be implemented by plugins
2013-08-30 12:51:41 +02:00
Nils Adermann
3960edd64e
Turn EventDispatcher into generic solution handling plugins as well
2013-08-30 12:51:41 +02:00