eZPublishCommunityProject  2013.5
eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator:
+ Collaboration diagram for eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator:

Public Member Functions

 __construct (\Closure $legacyKernelClosure)
 
 doGenerate ($legacyModuleUri, array $parameters)
 Generate the URL of an eZ Publish legacy module. More...
 
 getLegacyKernel ()
 
- Public Member Functions inherited from eZ\Publish\Core\MVC\Symfony\Routing\Generator
 doGenerate ($urlResource, array $parameters)
 Generates the URL from $urlResource and $parameters. More...
 
 generate ($urlResource, array $parameters, $absolute=false)
 Triggers URL generation for $urlResource and $parameters. More...
 
 setRequestContext (RequestContext $requestContext)
 

Private Attributes

 $legacyKernelClosure
 

Additional Inherited Members

- Protected Member Functions inherited from eZ\Publish\Core\MVC\Symfony\Routing\Generator
 generateAbsoluteUrl ($uri)
 Generates an absolute URL from $uri and the request context. More...
 
- Protected Attributes inherited from eZ\Publish\Core\MVC\Symfony\Routing\Generator
 $requestContext
 

Constructor & Destructor Documentation

eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator::__construct ( \Closure  $legacyKernelClosure)

Member Function Documentation

eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator::doGenerate (   $legacyModuleUri,
array  $parameters 
)

Generate the URL of an eZ Publish legacy module.

Existence of the module/view will be checked and an will be thrown if one or the other don't exist.

Parameters
string$legacyModuleUriThe legacy module URI, including ordered params (e.g. "/content/view/full/2"
array$parametersNamed parameters for the module/view
Exceptions
\InvalidArgumentException
Returns
string
eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator::getLegacyKernel ( )

Member Data Documentation

eZ\Bundle\EzPublishLegacyBundle\Routing\UrlGenerator::$legacyKernelClosure
private

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