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

Controller embedding legacy kernel. More...

Public Member Functions

 __construct (\Closure $kernelClosure, EngineInterface $templateEngine, ConfigResolverInterface $configResolver, URIHelper $uriHelper)
 
 indexAction ()
 Base fallback action. More...
 
 render ($view, array $parameters=array())
 Renders a view and returns a Response. More...
 
 setRequest (Request $request=null)
 

Private Attributes

 $kernel
 
 $legacyLayout
 
 $request
 
 $uriHelper
 

Detailed Description

Controller embedding legacy kernel.

Constructor & Destructor Documentation

eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::__construct ( \Closure  $kernelClosure,
EngineInterface  $templateEngine,
ConfigResolverInterface  $configResolver,
URIHelper  $uriHelper 
)
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
\eZ\Publish\Core\MVC\ConfigResolverInterface$configResolver
\eZ\Publish\Core\MVC\Legacy\Kernel\URIHelper$uriHelper

Member Function Documentation

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

Base fallback action.

Will be basically used for every legacy module.

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
LegacyResponse A LegacyResponse instance

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

eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::setRequest ( Request  $request = null)

Member Data Documentation

eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::$kernel
private
eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::$legacyLayout
private
eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::$request
private
eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController::$uriHelper
private

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