31 lines
580 B
PHP
31 lines
580 B
PHP
<?php
|
|
|
|
namespace Httpcb\ViewHelper;
|
|
|
|
use Phalcon\DiInterface;
|
|
use Phalcon\Di\InjectionAwareInterface;
|
|
|
|
abstract class AbstractHelper implements InjectionAwareInterface
|
|
{
|
|
protected $_di;
|
|
|
|
/**
|
|
* Sets the dependency injector
|
|
*
|
|
* @param mixed $dependencyInjector
|
|
*/
|
|
public function setDI(DiInterface $dependencyInjector)
|
|
{
|
|
$this->_di = $dependencyInjector;
|
|
}
|
|
|
|
/**
|
|
* Returns the internal dependency injector
|
|
*
|
|
* @return \Phalcon\DiInterface
|
|
*/
|
|
public function getDI()
|
|
{
|
|
return $this->_di;
|
|
}
|
|
}
|