eZPublishCommunityProject  2012.12
eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController Class Reference

Controller embedding legacy kernel. More...

Public Member Functions

 __construct (\Closure $kernelClosure, EngineInterface $templateEngine)
 
 indexAction ()
 Base fallback action. More...
 
 render ($view, array $parameters=array())
 Renders a view and returns a Response. More...
 

Private Attributes

 $kernel
 

Detailed Description

Controller embedding legacy kernel.

Constructor & Destructor Documentation

eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::__construct ( \Closure  $kernelClosure,
EngineInterface  $templateEngine 
)
Todo:
Maybe following dependencies should be mutualized in an abstract controller Injection can be done through "parent service" feature for DIC : http://symfony.com/doc/master/components/dependency_injection/parentservices.html
Parameters
\Closure$kernelClosure
\Symfony\Component\Templating\EngineInterface$templateEngine

Member Function Documentation

eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::indexAction ( )

Base fallback action.

Will be basically used for every

Returns
eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::render (   $view,
array  $parameters = array() 
)

Renders a view and returns a Response.

Parameters
string$viewThe view name
array$parametersAn array of parameters to pass to the view
Returns
Response A Response instance

Referenced by eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController\indexAction().

Member Data Documentation

eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::$kernel
private

The documentation for this class was generated from the following file: