eZPublishCommunityProject  2013.9
eZ\Publish\Core\MVC\Legacy\Kernel\Loader Class Reference

Legacy kernel loader. More...

Public Member Functions

 __construct ($legacyRootDir, $webrootDir, URIHelper $uriHelper, LoggerInterface $logger=null)
 
 buildLegacyKernel ($legacyKernelHandler)
 Builds up the legacy kernel and encapsulates it inside a closure, allowing lazy loading. More...
 
 buildLegacyKernelHandlerCLI (ContainerInterface $container)
 Builds legacy kernel handler CLI. More...
 
 buildLegacyKernelHandlerTreeMenu (ContainerInterface $container)
 Builds the legacy kernel handler for the tree menu in admin interface. More...
 
 buildLegacyKernelHandlerWeb (ContainerInterface $container, $webHandlerClass, array $defaultLegacyOptions=array())
 Builds up the legacy kernel web handler and encapsulates it inside a closure, allowing lazy loading. More...
 

Protected Attributes

 $legacyRootDir
 
 $logger
 
 $uriHelper
 
 $webrootDir
 

Detailed Description

Legacy kernel loader.

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Legacy\Kernel\Loader::__construct (   $legacyRootDir,
  $webrootDir,
URIHelper  $uriHelper,
LoggerInterface  $logger = null 
)

Member Function Documentation

eZ\Publish\Core\MVC\Legacy\Kernel\Loader::buildLegacyKernel (   $legacyKernelHandler)

Builds up the legacy kernel and encapsulates it inside a closure, allowing lazy loading.

Parameters
\ezpKernelHandler|\ClosureA kernel handler instance or a closure returning a kernel handler instance
Returns

Referenced by eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyTreeMenuController\__construct().

eZ\Publish\Core\MVC\Legacy\Kernel\Loader::buildLegacyKernelHandlerCLI ( ContainerInterface  $container)

Builds legacy kernel handler CLI.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$container
Returns
CLIHandler
eZ\Publish\Core\MVC\Legacy\Kernel\Loader::buildLegacyKernelHandlerTreeMenu ( ContainerInterface  $container)

Builds the legacy kernel handler for the tree menu in admin interface.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$container
Returns
A closure returning an instance.
eZ\Publish\Core\MVC\Legacy\Kernel\Loader::buildLegacyKernelHandlerWeb ( ContainerInterface  $container,
  $webHandlerClass,
array  $defaultLegacyOptions = array() 
)

Builds up the legacy kernel web handler and encapsulates it inside a closure, allowing lazy loading.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$container
string$webHandlerClassThe legacy kernel handler class to use
array$defaultLegacyOptionsHash of options to pass to the legacy kernel handler
Exceptions
\InvalidArgumentException
Returns
|void

Referenced by eZ\Publish\Core\MVC\Legacy\Kernel\Loader\buildLegacyKernelHandlerTreeMenu().

Member Data Documentation

eZ\Publish\Core\MVC\Legacy\Kernel\Loader::$logger
protected
eZ\Publish\Core\MVC\Legacy\Kernel\Loader::$uriHelper
protected

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