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
|
|
@ -4,7 +4,7 @@ namespace Httpcb;
|
||||||
|
|
||||||
use Phalcon\Di\FactoryDefault as DiDefault;
|
use Phalcon\Di\FactoryDefault as DiDefault;
|
||||||
use Phalcon\Di\Injectable;
|
use Phalcon\Di\Injectable;
|
||||||
use Phalcon\DiInterface;
|
use Phalcon\Di\DiInterface;
|
||||||
use Phalcon\Mvc\Application;
|
use Phalcon\Mvc\Application;
|
||||||
|
|
||||||
class Bootstrap extends Injectable
|
class Bootstrap extends Injectable
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Httpcb\ViewHelper;
|
namespace Httpcb\ViewHelper;
|
||||||
|
|
||||||
use Phalcon\DiInterface;
|
use Phalcon\Di\DiInterface;
|
||||||
use Phalcon\Di\InjectionAwareInterface;
|
use Phalcon\Di\InjectionAwareInterface;
|
||||||
|
|
||||||
abstract class AbstractHelper implements InjectionAwareInterface
|
abstract class AbstractHelper implements InjectionAwareInterface
|
||||||
|
|
@ -12,19 +12,19 @@ abstract class AbstractHelper implements InjectionAwareInterface
|
||||||
/**
|
/**
|
||||||
* Sets the dependency injector
|
* 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
|
* Returns the internal dependency injector
|
||||||
*
|
*
|
||||||
* @return \Phalcon\DiInterface
|
* @return DiInterface
|
||||||
*/
|
*/
|
||||||
public function getDI()
|
public function getDI() : DiInterface
|
||||||
{
|
{
|
||||||
return $this->_di;
|
return $this->_di;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Httpcb\ViewHelper;
|
namespace Httpcb\ViewHelper;
|
||||||
|
|
||||||
use Phalcon\DiInterface,
|
use Phalcon\Di\DiInterface,
|
||||||
Phalcon\Di\InjectionAwareInterface;
|
Phalcon\Di\InjectionAwareInterface;
|
||||||
|
|
||||||
class Service implements InjectionAwareInterface
|
class Service implements InjectionAwareInterface
|
||||||
|
|
@ -14,19 +14,19 @@ class Service implements InjectionAwareInterface
|
||||||
/**
|
/**
|
||||||
* Sets the dependency injector
|
* 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
|
* Returns the internal dependency injector
|
||||||
*
|
*
|
||||||
* @return \Phalcon\DiInterface
|
* @return DiInterface
|
||||||
*/
|
*/
|
||||||
public function getDI()
|
public function getDI() : DiInterface
|
||||||
{
|
{
|
||||||
return $this->_di;
|
return $this->_di;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Httpcb\ViewHelper\Volt;
|
namespace Httpcb\ViewHelper\Volt;
|
||||||
|
|
||||||
use Phalcon\DiInterface,
|
use Phalcon\Di\DiInterface,
|
||||||
Phalcon\Di\InjectionAwareInterface;
|
Phalcon\Di\InjectionAwareInterface;
|
||||||
|
|
||||||
class Extension implements InjectionAwareInterface
|
class Extension implements InjectionAwareInterface
|
||||||
|
|
@ -38,19 +38,19 @@ class Extension implements InjectionAwareInterface
|
||||||
/**
|
/**
|
||||||
* Sets the dependency injector
|
* 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
|
* Returns the internal dependency injector
|
||||||
*
|
*
|
||||||
* @return \Phalcon\DiInterface
|
* @return DiInterface
|
||||||
*/
|
*/
|
||||||
public function getDI()
|
public function getDI() : DiInterface
|
||||||
{
|
{
|
||||||
return $this->_di;
|
return $this->_di;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
namespace App\Module;
|
namespace App\Module;
|
||||||
|
|
||||||
use Phalcon\Loader,
|
use Phalcon\Loader,
|
||||||
Phalcon\DiInterface,
|
Phalcon\Di\DiInterface,
|
||||||
Phalcon\Mvc\Dispatcher,
|
Phalcon\Mvc\Dispatcher,
|
||||||
Phalcon\Mvc\ModuleDefinitionInterface;
|
Phalcon\Mvc\ModuleDefinitionInterface;
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue