Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'di-renamed-interfaces' of https://github.com/prolic/zf2
Browse files Browse the repository at this point in the history
…into feature/zen27-di

Conflicts:
	library/Zend/Mvc/Application.php
	library/Zend/Mvc/ApplicationInterface.php
	library/Zend/Mvc/Controller/ActionController.php
	library/Zend/Mvc/Controller/Plugin/Forward.php
	library/Zend/Mvc/Controller/RestfulController.php
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/LocatorAware.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Zend\Loader;

use Zend\Di\Locator;
use Zend\Di\LocatorInterface;

interface LocatorAware
{
public function setLocator(Locator $locator);
public function setLocator(LocatorInterface $locator);
public function getLocator();
}
10 changes: 5 additions & 5 deletions src/PluginBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace Zend\Loader;

use Zend\Di\Locator;
use Zend\Di\LocatorInterface;

/**
* Plugin broker base implementation
Expand Down Expand Up @@ -59,7 +59,7 @@ class PluginBroker implements Broker, LocatorAware
protected $validator;

/**
* @var Zend\Di\Locator
* @var Zend\Di\LocatorInterface
*/
protected $locator;

Expand Down Expand Up @@ -395,7 +395,7 @@ protected function isAssocArray($value)
/**
* Get locator.
*
* @return Zend\Di\Locator
* @return Zend\Di\LocatorInterface
*/
public function getLocator()
{
Expand All @@ -405,9 +405,9 @@ public function getLocator()
/**
* Set locator.
*
* @param Zend\Di\Locator $locator
* @param Zend\Di\LocatorInterface $locator
*/
public function setLocator(Locator $locator)
public function setLocator(LocatorInterface $locator)
{
$this->locator = $locator;
return $this;
Expand Down
4 changes: 2 additions & 2 deletions test/TestAsset/ServiceLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace ZendTest\Loader\TestAsset;

use Zend\Di\Locator;
use Zend\Di\LocatorInterface;

class ServiceLocator implements Locator
class ServiceLocator implements LocatorInterface
{
protected $services = array();

Expand Down

0 comments on commit e64a6fc

Please sign in to comment.