You are here

class Append in Zircon Profile 8

Same name in this branch
  1. 8 vendor/stack/builder/tests/functional/SilexApplicationTest.php \functional\Append
  2. 8 vendor/stack/builder/tests/unit/Stack/BuilderTest.php \Stack\Append
Same name and namespace in other branches
  1. 8.0 vendor/stack/builder/tests/functional/SilexApplicationTest.php \functional\Append

Hierarchy

Expanded class hierarchy of Append

File

vendor/stack/builder/tests/functional/SilexApplicationTest.php, line 42

Namespace

functional
View 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

Namesort descending Modifiers Type Description Overrides
Append::$app private property
Append::$appendix private property
Append::handle public function Handles a Request to convert it to a Response. Overrides HttpKernelInterface::handle
Append::__construct public function
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant