Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Resonance
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
distantmagic
Resonance
Commits
2d893f62
Unverified
Commit
2d893f62
authored
3 months ago
by
Mateusz Charytoniuk
Committed by
GitHub
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Update responders.md
parent
1fac4c21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/pages/docs/features/http/responders.md
+3
-3
3 additions, 3 deletions
docs/pages/docs/features/http/responders.md
with
3 additions
and
3 deletions
docs/pages/docs/features/http/responders.md
+
3
−
3
View file @
2d893f62
...
...
@@ -55,7 +55,7 @@ namespace App\HttpResponder;
use
App\HttpRouteSymbol
;
use
Distantmagic\Resonance\Attribute\RespondsToHttp
;
use
Distantmagic\Resonance\Attribute\Singleton
;
use
Distantmagic\Resonance\HttpResponder
Interface
;
use
Distantmagic\Resonance\HttpResponder
;
use
Distantmagic\Resonance\RequestMethod
;
use
Distantmagic\Resonance\SingletonCollection
;
use
Psr\Http\Message\ResponseInterface
;
...
...
@@ -67,7 +67,7 @@ use Psr\Http\Message\ServerRequestInterface;
routeSymbol
:
HttpRouteSymbol
::
Homepage
,
)]
#[Singleton(collection: SingletonCollection::HttpResponder)]
final
readonly
class
Homepage
implem
en
t
s
HttpResponder
Interface
final
readonly
class
Homepage
ext
en
d
s
HttpResponder
{
public
function
respond
(
ServerRequestInterface
$request
,
ResponseInterface
$response
):
ResponseInterface
{
...
...
@@ -113,7 +113,7 @@ use Psr\Http\Message\ServerRequestInterface;
class
MyResponder
implements
HttpResponderInterface
{
public
function
respond
(
Request
$request
,
Response
$response
):
?HttpResponderInterface
public
function
respond
(
Server
Request
Interface
$request
,
Response
Interface
$response
):
?HttpResponderInterface
{
return
new
class
implements
HttpResponderInterface
{
public
function
respond
(
ServerRequestInterface
$request
,
ResponseInterface
$response
):
ResponseInterface
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment