__construct()
__construct(array|\ArrayAccess $data = null)
Parameters
array|\ArrayAccess | $data | The dependencies (app and logger). |
Template (View Controller) base class
setDependencies(\Pimple\Container $container) : void
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).
\Pimple\Container | $container | A dependencies container instance. |