PHP Class Bolt\Controller\Async\Widget

Author: Gawain Lynch ([email protected])
Author: Carson Full ([email protected])
Inheritance: extends Bolt\Controller\Async\AsyncBase
Show file Open project: bolt/bolt

Public Methods

Method Description
before ( Request $request ) Override of async request before method.
widget ( Request $request, string $key ) : Response Render a widget, and return the HTML, so it can be inserted in the page.

Protected Methods

Method Description
addRoutes ( Silex\ControllerCollection $c )

Method Details

addRoutes() protected method

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

before() public method

NOTE: Routes on this controller *MUST* check their own authentication where it is applicable.
public before ( Request $request )
$request Symfony\Component\HttpFoundation\Request

widget() public method

Render a widget, and return the HTML, so it can be inserted in the page.
public widget ( Request $request, string $key ) : Response
$request Symfony\Component\HttpFoundation\Request
$key string
return Symfony\Component\HttpFoundation\Response