PHP Class Elcodi\Bridge\BehatBridgeBundle\Abstracts\AbstractElcodiContext

Inheritance: extends Behat\MinkExtension\Context\RawMinkContext, implements Behat\Behat\Context\Context, implements Behat\Symfony2Extension\Context\KernelAwareContext
Show file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$application Symfony\Bundle\FrameworkBundle\Console\Application application
$kernel Symfony\Component\HttpKernel\KernelInterface Kernel

Public Methods

Method Description
getRoute ( string $routeName, array $routeParameters = [] ) : string Get route given name and parameters
getUrlGenerator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface ** Get url generator
setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel ) Sets Kernel instance.

Protected Methods

Method Description
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface Returns Container instance.

Method Details

getContainer() protected method

Returns Container instance.
protected getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface

getRoute() public method

Get route given name and parameters
public getRoute ( string $routeName, array $routeParameters = [] ) : string
$routeName string Route name
$routeParameters array Route parameters
return string Route path

getUrlGenerator() public method

** Get url generator
public getUrlGenerator ( ) : Symfony\Component\Routing\Generator\UrlGeneratorInterface
return Symfony\Component\Routing\Generator\UrlGeneratorInterface Url generator

setKernel() public method

Sets Kernel instance.
public setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

Property Details

$application protected property

application
protected Application,Symfony\Bundle\FrameworkBundle\Console $application
return Symfony\Bundle\FrameworkBundle\Console\Application

$kernel protected property

Kernel
protected KernelInterface,Symfony\Component\HttpKernel $kernel
return Symfony\Component\HttpKernel\KernelInterface