Phalcon\DiInterface is renamed to Phalcon\Di\DiInterface
This commit is contained in:
parent
0508e7cea7
commit
aababdcb12
5 changed files with 20 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue