yii-debug-api icon indicating copy to clipboard operation
yii-debug-api copied to clipboard

Debug server

Open xepozz opened this issue 2 years ago • 2 comments

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

https://github.com/yiisoft/yii-dev-panel/pull/70 https://github.com/yiisoft/yii-debug/pull/225

xepozz avatar Sep 07 '23 16:09 xepozz

Codecov Report

Attention: Patch coverage is 0% with 30 lines in your changes missing coverage. Please review.

Project coverage is 2.97%. Comparing base (e4a6c26) to head (20765db). Report is 9 commits behind head on master.

:exclamation: Current head 20765db differs from pull request most recent head 678a006

Please upload reports for the commit 678a006 to get more accurate results.

Files Patch % Lines
src/Inspector/Controller/DebugServerController.php 0.00% 23 Missing :warning:
src/ServerSentEventsStream.php 0.00% 7 Missing :warning:
Additional details and impacted files
@@             Coverage Diff             @@
##             master    #125      +/-   ##
===========================================
- Coverage      3.01%   2.97%   -0.05%     
- Complexity      255     261       +6     
===========================================
  Files            22      23       +1     
  Lines          1325    1345      +20     
===========================================
  Hits             40      40              
- Misses         1285    1305      +20     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Sep 07 '23 16:09 codecov[bot]

PR Summary

  • Introduction of a New Route There is a new route added, labeled as '/dev', specified in the file titled 'config/routes.php'. This new route leads to a destination referred to as the 'DevServerController' class.

  • Creation of a Stream Endpoint through New File A brand new file, 'DevServerController.php', has been placed in the 'src/Controller' folder. This file's purpose is to create a continuous stream of data, meant for server-sent events. This is done through incorporating a couple of resources: 'DataResponseFactoryInterface' and 'Aliases'. The new function, dubbed the stream method, establishes such a server-sent events stream, sets up necessary data exchange headers, and returns a response containing the created stream in the body part of the response message.

what-the-diff[bot] avatar Sep 07 '23 16:09 what-the-diff[bot]