for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Behat Symfony2Extension
*
* (c) Konstantin Kudryashov <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Behat\Symfony2Extension\Context;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Kernel support methods for Symfony2Extension.
* @author Konstantin Kudryashov <[email protected]>
trait KernelDictionary
{
private $kernel;
* Sets Kernel instance.
* @param KernelInterface $kernel
public function setKernel(KernelInterface $kernel)
$this->kernel = $kernel;
}
* Returns HttpKernel instance.
* @return KernelInterface
public function getKernel()
return $this->kernel;
* Returns HttpKernel service container.
* @return ContainerInterface
public function getContainer()
return $this->kernel->getContainer();