Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
monitoring
/
vendor
/
laminas
/
laminas-httphandlerrunner
/
src
/
Emitter
/
File Content:
SapiEmitter.php
<?php declare (strict_types=1); namespace PleskMonitoring\Laminas\HttpHandlerRunner\Emitter; use PleskMonitoring\Psr\Http\Message\ResponseInterface; class SapiEmitter implements EmitterInterface { use SapiEmitterTrait; /** * Emits a response for a PHP SAPI environment. * * Emits the status line and headers via the header() function, and the * body content via the output buffer. */ public function emit(ResponseInterface $response) : bool { $this->assertNoPreviousOutput(); $this->emitHeaders($response); $this->emitStatusLine($response); $this->emitBody($response); return \true; } /** * Emit the message body. */ private function emitBody(ResponseInterface $response) : void { echo $response->getBody(); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
EmitterInterface.php
904 bytes
0644
EmitterStack.php
2772 bytes
0644
SapiEmitter.php
833 bytes
0644
SapiEmitterTrait.php
4019 bytes
0644
SapiStreamEmitter.php
3270 bytes
0644
N4ST4R_ID | Naxtarrr