class Append in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/stack/builder/tests/functional/SilexApplicationTest.php \functional\Append
- 8.0 vendor/stack/builder/tests/unit/Stack/BuilderTest.php \Stack\Append
Same name and namespace in other branches
- 8 vendor/stack/builder/tests/functional/SilexApplicationTest.php \functional\Append
Hierarchy
- class \functional\Append implements HttpKernelInterface
Expanded class hierarchy of Append
File
- vendor/
stack/ builder/ tests/ functional/ SilexApplicationTest.php, line 42
Namespace
functionalView source
class Append implements HttpKernelInterface {
private $app;
private $appendix;
public function __construct(HttpKernelInterface $app, $appendix) {
$this->app = $app;
$this->appendix = $appendix;
}
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
$response = clone $this->app
->handle($request, $type, $catch);
$response
->setContent($response
->getContent() . $this->appendix);
return $response;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Append:: |
private | property | ||
Append:: |
private | property | ||
Append:: |
public | function |
Handles a Request to convert it to a Response. Overrides HttpKernelInterface:: |
|
Append:: |
public | function | ||
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant |