Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Drupal\Core;
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\HttpKernel\HttpKernelInterface;
- use Drupal\Core\Response\DrupalResponse;
- class DrupalKernel implements HttpKernelInterface {
- protected $response;
- public function __construct(DrupalResponse $response) {
- $this->response = $response;
- }
- public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
- return $this->response->getResponse($request);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment