[FrameworkBundle] fixed the typehint for Kernel on the Client class (refs #4897)

This commit is contained in:
Fabien Potencier 2012-09-19 05:59:05 +02:00
parent 3ae0b4731f
commit 05d8c4288c

View File

@ -12,11 +12,13 @@
namespace Symfony\Bundle\FrameworkBundle; namespace Symfony\Bundle\FrameworkBundle;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\HttpKernel\Client as BaseClient; use Symfony\Component\HttpKernel\Client as BaseClient;
use Symfony\Component\HttpKernel\Profiler\Profile as HttpProfile; use Symfony\Component\HttpKernel\Profiler\Profile as HttpProfile;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\BrowserKit\History;
use Symfony\Component\BrowserKit\CookieJar;
/** /**
* Client simulates a browser and makes requests to a Kernel object. * Client simulates a browser and makes requests to a Kernel object.
@ -28,6 +30,14 @@ class Client extends BaseClient
private $hasPerformedRequest = false; private $hasPerformedRequest = false;
private $profiler = false; private $profiler = false;
/**
* @inheritdoc
*/
public function __construct(KernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
{
parent::__construct($kernel, $server, $history, $cookieJar);
}
/** /**
* Returns the container. * Returns the container.
* *
@ -41,7 +51,7 @@ class Client extends BaseClient
/** /**
* Returns the kernel. * Returns the kernel.
* *
* @return HttpKernelInterface * @return KernelInterface
*/ */
public function getKernel() public function getKernel()
{ {