Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/library/ViewHelper/AbstractHelper.php
2023-04-30 16:52:38 +02:00

31 lines
572 B
PHP

<?php
namespace Httpcb\ViewHelper;
use Phalcon\Di\DiInterface;
use Phalcon\Di\InjectionAwareInterface;
abstract class AbstractHelper implements InjectionAwareInterface
{
protected $_di;
/**
* Sets the dependency injector
*
* @param DiInterface $container
*/
public function setDI(DiInterface $container): void
{
$this->_di = $container;
}
/**
* Returns the internal dependency injector
*
* @return DiInterface
*/
public function getDI(): DiInterface
{
return $this->_di;
}
}