Archived
1
0
Fork 0

Phalcon\DiInterface is renamed to Phalcon\Di\DiInterface

This commit is contained in:
Henrik Hautakoski 2022-07-26 19:53:31 +02:00
parent 0508e7cea7
commit aababdcb12
5 changed files with 20 additions and 20 deletions

View file

@ -2,7 +2,7 @@
namespace Httpcb\ViewHelper;
use Phalcon\DiInterface;
use Phalcon\Di\DiInterface;
use Phalcon\Di\InjectionAwareInterface;
abstract class AbstractHelper implements InjectionAwareInterface
@ -12,19 +12,19 @@ abstract class AbstractHelper implements InjectionAwareInterface
/**
* Sets the dependency injector
*
* @param mixed $dependencyInjector
* @param DiInterface $container
*/
public function setDI(DiInterface $dependencyInjector)
public function setDI(DiInterface $container) : void
{
$this->_di = $dependencyInjector;
$this->_di = $container;
}
/**
* Returns the internal dependency injector
*
* @return \Phalcon\DiInterface
* @return DiInterface
*/
public function getDI()
public function getDI() : DiInterface
{
return $this->_di;
}

View file

@ -2,7 +2,7 @@
namespace Httpcb\ViewHelper;
use Phalcon\DiInterface,
use Phalcon\Di\DiInterface,
Phalcon\Di\InjectionAwareInterface;
class Service implements InjectionAwareInterface
@ -14,19 +14,19 @@ class Service implements InjectionAwareInterface
/**
* Sets the dependency injector
*
* @param mixed $dependencyInjector
* @param DiInterface $container
*/
public function setDI(DiInterface $dependencyInjector)
public function setDI(DiInterface $container) : void
{
$this->_di = $dependencyInjector;
$this->_di = $container;
}
/**
* Returns the internal dependency injector
*
* @return \Phalcon\DiInterface
* @return DiInterface
*/
public function getDI()
public function getDI() : DiInterface
{
return $this->_di;
}

View file

@ -2,7 +2,7 @@
namespace Httpcb\ViewHelper\Volt;
use Phalcon\DiInterface,
use Phalcon\Di\DiInterface,
Phalcon\Di\InjectionAwareInterface;
class Extension implements InjectionAwareInterface
@ -38,19 +38,19 @@ class Extension implements InjectionAwareInterface
/**
* Sets the dependency injector
*
* @param mixed $dependencyInjector
* @param DiInterface $container
*/
public function setDI(DiInterface $dependencyInjector)
public function setDI(DiInterface $container) : void
{
$this->_di = $dependencyInjector;
$this->_di = $container;
}
/**
* Returns the internal dependency injector
*
* @return \Phalcon\DiInterface
* @return DiInterface
*/
public function getDI()
public function getDI() : DiInterface
{
return $this->_di;
}