PHP Class Neos\FluidAdaptor\Core\Widget\AjaxWidgetComponent

Inheritance: extends Neos\Flow\Mvc\DispatchComponent
Exibir arquivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$ajaxWidgetContextHolder AjaxWidgetContextHolder
$hashService Neos\Flow\Security\Cryptography\HashService

Public Methods

Method Description
handle ( ComponentContext $componentContext ) : void Check if the current request contains a widget context.

Protected Methods

Method Description
extractWidgetContext ( Request $httpRequest ) : WidgetContext Extracts the WidgetContext from the given $httpRequest.

Method Details

extractWidgetContext() protected method

If the request contains an argument "__widgetId" the context is fetched from the session (AjaxWidgetContextHolder). Otherwise the argument "__widgetContext" is expected to contain the serialized WidgetContext (protected by a HMAC suffix)
protected extractWidgetContext ( Request $httpRequest ) : WidgetContext
$httpRequest Neos\Flow\Http\Request
return WidgetContext

handle() public method

If so dispatch it directly, otherwise continue with the next HTTP component.
public handle ( ComponentContext $componentContext ) : void
$componentContext Neos\Flow\Http\Component\ComponentContext
return void

Property Details

$ajaxWidgetContextHolder protected_oe property

protected AjaxWidgetContextHolder,Neos\FluidAdaptor\Core\Widget $ajaxWidgetContextHolder
return AjaxWidgetContextHolder

$hashService protected_oe property

protected HashService,Neos\Flow\Security\Cryptography $hashService
return Neos\Flow\Security\Cryptography\HashService