Jordi Boggiano
c2fd4d3ebb
Fix private autoloader callbacks breaking the new runtime autoloader handling code
2024-05-04 23:01:17 +02:00
Jordi Boggiano
bcab1c4b8e
Fix Composer autoloader being hijackable by script/plugin event handlers ( #11955 )
2024-04-29 11:41:33 +02:00
Jordi Boggiano
fa040131b0
Add more details to event debug output, refs #11818
2024-02-07 11:18:06 +01:00
PrinsFrank
fd23381391
Add arguments to command call output ( #11826 )
2024-02-07 11:11:16 +01:00
Jordi Boggiano
f4738d97b7
Add support for Application::setCatchErrors in symfony 6.4+, refs symfony/symfony#50420
2023-07-28 19:33:33 +02:00
Jordi Boggiano
3ae662f4c7
Fix EventDispatcher on windows picking bat files when using "@php binary", fixes #11490
2023-06-07 15:19:44 +02:00
Jordi Boggiano
bd6a5019b3
Update to composer/pcre 2.1 ( #11189 )
2022-11-17 11:34:54 +01:00
Jordi Boggiano
6c85b875f2
Update to PHPStan 1.9
2022-11-03 21:53:42 +01:00
Jordi Boggiano
6e55cb36d8
Add support for adding Command classes as scripts, ( #11151 )
...
* Add support for adding Command classes as scripts, fixes #11134
* Allow all options to be forwarded and allow using references to other scripts with args
* Fix build
* Add more checks
* Ensure exceptions are not swallowed, and remove naming restriction by using a single-command app
* Update docs
* Add tests, fix issue merging params when combining nested scripts and CLI params
2022-10-28 14:24:55 +02:00
Jordi Boggiano
131da999ac
Fix CS ( #11003 )
2022-08-17 14:20:07 +02:00
Jordi Boggiano
07645b9895
Capture signals and wait until child process exits to also exit, fixes #6059
2022-07-20 22:32:09 +02:00
Mathias Reker ⚡️
4131f7cf4c
Static lambda ( #10854 )
...
Lambdas not (indirect) referencing $this must be declared static.
2022-06-22 14:19:18 +02:00
Jordi Boggiano
30a8b82b15
Merge branch '2.2' into 2.3
2022-06-22 13:49:11 +02:00
Marek Stipek
690ab5166a
Ignoring passed arguments for @putenv, closes #10846
2022-06-22 13:40:35 +02:00
Jordi Boggiano
849bc51ce7
Fix ProcessExecutor bootstrapping, fixes #10703
2022-04-07 15:19:22 +02:00
Pavel Djundik
c2598790f4
Fix run-script not setting Path correctly on Windows ( #10700 )
2022-04-06 21:46:57 +02:00
Jordi Boggiano
b46dba29ce
Allow addListener to work with strings, fixes #10672
2022-03-30 16:16:38 +02:00
Jordi Boggiano
d1fa5d1ede
Make eventName required if no $event is passed in
2022-03-29 22:16:19 +02:00
Jordi Boggiano
906692cd04
Allow null eventName in EventDispatcher::dispatch
2022-03-29 21:58:53 +02:00
Jordi Boggiano
0708eb45e5
Fix type error when PATH env is not set, fixes #10662
2022-03-29 14:07:04 +02:00
Jordi Boggiano
6a466a120a
Enable strict types on all files
2022-02-24 13:24:34 +01:00
Jordi Boggiano
89ce53250e
Final type additions
2022-02-23 12:54:07 +01:00
Jordi Boggiano
7abc8da7d3
Add more types
2022-02-23 11:37:32 +01:00
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2022-02-22 16:48:53 +01:00
Jordi Boggiano
84f0f19112
Split Composer into PartialComposer & Composer classes to avoid nullable properties on Composer for non-fully-loaded instances, add types to Composer\Factory
2022-02-18 14:45:08 +01:00
Jordi Boggiano
a16ed3d0ed
Add return types to private/internal methods
2022-02-18 11:22:01 +01:00
Jordi Boggiano
32852304d0
Make use of some new PHP features
2022-02-18 10:20:20 +01:00
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
2022-02-16 13:24:57 +01:00
Jordi Boggiano
5805a68645
Fix some todos dropping support for older Symfony releases
2022-01-03 14:51:41 +01:00
Jordi Boggiano
71ab70d847
Disable files autoloading for scripts to avoid untrusted code execution at runtime ( #10373 )
2021-12-20 14:27:34 +01:00
Jordi Boggiano
24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_*
2021-12-07 12:37:19 +01:00
Jordi Boggiano
f509c41280
Upgrade PHPStan to 1.0 ( #10253 )
...
Co-authored-by: Martin Herndl <martin@herndl.org>
2021-11-14 20:42:24 +01:00
Nicolas Grekas
0662fa2662
Fix loading files for plugins/scripts ( #10279 )
2021-11-12 09:44:34 +01:00
Jordi Boggiano
bd4d624cc7
Read first from $_SERVER and $_ENV before using getenv ( #10218 )
2021-11-09 16:31:27 +01:00
Paolo Rossi
a921d9b233
Reaching phpstan level 6 in EventDispatcher Exception and Installer folders ( #10192 )
2021-10-25 10:44:29 +02:00
Jordi Boggiano
b209816056
Type annotations
2021-10-17 14:31:48 +02:00
Jordi Boggiano
d1c8a4d1b4
Lots of typing improvements
2021-10-12 22:47:23 +02:00
Jordi Boggiano
0761474599
Add type info to many properties/methods
2021-08-30 14:46:49 +02:00
Jordi Boggiano
b45c8dea0a
Cleanups
2021-06-05 16:21:46 +02:00
Nicolas Grekas
eac069bf36
Fix --no-scripts disabling events for plugins
2021-06-05 16:09:04 +02:00
Jordi Boggiano
cbd1e3c2af
Fix undefined index access when using "@php <absolute path>" in script handler, fixes #9943
2021-06-05 12:51:23 +02:00
Jordi Boggiano
91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930
2021-06-03 10:17:54 +02:00
Jordi Boggiano
0021758e0b
Merge branch '2.0'
2021-05-10 13:14:14 +02:00
Jordi Boggiano
d56387edb7
Also handle throwable on supported php versions
2021-05-10 13:14:08 +02:00
Jordi Boggiano
7b77161b7e
Merge branch '2.0'
2021-05-04 16:29:32 +02:00
Jordi Boggiano
37f4f531d0
Avoid leaving the event stack in a dirty state if an event listener throws, fixes #9846
2021-05-04 16:18:38 +02:00
Jordi Boggiano
4940009f83
Bump phpstan to level 3 ( #9734 )
...
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
2021-03-09 15:49:40 +01:00
Jordi Boggiano
bcd862c3dc
Add support for @php <abs path to binary from PATH>, fixes #9726
2021-03-09 10:38:46 +01:00
Jordi Boggiano
7c910e6bfa
Revert autoload order fix, force bundled dependencies to be used over local dependencies, fixes #9721 , fixes #9717
2021-02-24 14:55:13 +01:00
Jordi Boggiano
2597e195ef
Merge remote-tracking branch 'Sweetchuck/i9703-event-dispatcher-last-winner'
2021-02-23 15:25:57 +01:00