EclipseGc

DrupalKernel.php

Feb 3rd, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Drupal\Core;
  4.  
  5. use Symfony\Component\HttpFoundation\Request;
  6. use Symfony\Component\HttpKernel\HttpKernelInterface;
  7. use Drupal\Core\Response\DrupalResponse;
  8.  
  9.  
  10. class DrupalKernel implements HttpKernelInterface {
  11.   protected $response;
  12.  
  13.   public function __construct(DrupalResponse $response) {
  14.     $this->response = $response;
  15.   }
  16.  
  17.   public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
  18.     return $this->response->getResponse($request);
  19.   }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment