Class AbstractTemplate
Template (View Controller) base class
-
Charcoal\Config\AbstractEntity
-
Charcoal\App\Template\AbstractTemplate
implements
Psr\Log\LoggerAwareInterface,
Charcoal\App\Template\TemplateInterface
uses
Psr\Log\LoggerAwareTrait (not available)
Methods summary
public
|
#
__construct( array|ArrayAccess $data = null )
Parameters
- $data
- The dependencies (app and logger).
|
public
boolean
|
#
init( Psr\Http\Message\RequestInterface $request )
Initialize the template with a request.
Initialize the template with a request.
Parameters
- $request
- The request to intialize.
Returns
boolean Success / Failure.
Implementation of
|
public
|
#
setDependencies( Pimple\Container $container )
Give an opportunity to children classes to inject dependencies from a Pimple Container.
Give an opportunity to children classes to inject dependencies from a Pimple Container.
Does nothing by default, reimplement in children classes.
The $container DI-container (from Pimple ) should not be saved or passed around, only to be used to
inject dependencies (typically via setters).
Parameters
- $container
- A dependencies container instance.
Implementation of
|