consolidation / annotated-command

Create Symfony Console commands from annotated command class methods.
Other
221 stars 37 forks source link

Inject command metadata #301

Closed greg-1-anderson closed 1 year ago

greg-1-anderson commented 1 year ago

Make annotation data and formatter options available to command methods that request them.

Disposition

This pull request:

Summary

The command's AnnotationData and FormatterOptions will now be passed as a parameter to command methods that declare them.

codecov[bot] commented 1 year ago

Codecov Report

Merging #301 (aa8233f) into 4.x (7f5dd1a) will increase coverage by 0.06%. The diff coverage is 100.00%.

:exclamation: Current head aa8233f differs from pull request most recent head 1420639. Consider uploading reports for the commit 1420639 to get more accurate results

@@             Coverage Diff              @@
##                4.x     #301      +/-   ##
============================================
+ Coverage     88.16%   88.23%   +0.06%     
- Complexity      777      780       +3     
============================================
  Files            46       46              
  Lines          2087     2099      +12     
============================================
+ Hits           1840     1852      +12     
  Misses          247      247              
Impacted Files Coverage Δ
src/AnnotatedCommand.php 87.98% <100.00%> (+0.11%) :arrow_up:
src/CommandProcessor.php 92.39% <100.00%> (+0.34%) :arrow_up:
src/ParameterInjection.php 93.10% <100.00%> (+1.79%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more