Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug server #125

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Debug server #125

wants to merge 12 commits into from

Conversation

xepozz
Copy link
Member

@xepozz xepozz commented Sep 7, 2023

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

yiisoft/yii-dev-panel#70
yiisoft/yii-debug#225

@codecov
Copy link

codecov bot commented Sep 7, 2023

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.

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 ⚠️
src/ServerSentEventsStream.php 0.00% 7 Missing ⚠️
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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@what-the-diff
Copy link

what-the-diff bot commented Sep 7, 2023

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.

@xepozz xepozz changed the title Dev server Debug server Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants