\Vegas\DI\ServiceComponentAbstract

Class ComponentAbstract

Summary

Methods
Properties
Constants
setDI()
getDI()
__construct()
getRenderer()
setRenderer()
render()
No public properties found
No constants found
setUp()
$di
$renderer
$moduleName
$templateName
N/A
No private methods found
No private properties found
N/A

Properties

$di

$di : \Phalcon\DiInterface

Dependency injector

Type

\Phalcon\DiInterface

$renderer

$renderer : 

Renderer instance

Type

$moduleName

$moduleName : 

Name of module

Type

$templateName

$templateName : 

Name of template to render

Type

Methods

setDI()

setDI(\Phalcon\DiInterface $dependencyInjector) : $this

Sets the dependency injector

Parameters

\Phalcon\DiInterface $dependencyInjector

Returns

$this

getDI()

getDI() : \Phalcon\DiInterface

Returns the internal dependency injector

Returns

\Phalcon\DiInterface

getRenderer()

getRenderer() : mixed

Returns renderer instance

Returns

mixed

setRenderer()

setRenderer(\Vegas\DI\Service\Component\RendererInterface $renderer) : $this|mixed

Sets renderer object and setups module and template name

Parameters

\Vegas\DI\Service\Component\RendererInterface $renderer

Returns

$this|mixed

render()

render( $params) : mixed

Renders component content using provided renderer or default renderer

Parameters

$params

Returns

mixed

setUp()

setUp(array $params) : mixed

Setups component

Parameters

array $params

Returns

mixed