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

Commit

Permalink
Switch type hinting for plugin loaders
Browse files Browse the repository at this point in the history
- In most instances, switched from typehinting on PrefixPathMapper to use
  ShortNameLocater instead. For functionality depending on PrefixPathMapper
  definitions, added conditional logic.
- Re-fixed broken merge in Zend\Application\Resource\CacheManager tests and
  Zend\Cache\Cache front/backend loading
  • Loading branch information
weierophinney committed Jul 23, 2010
4 parents a1ec0e4 + 73e93c4 + 954b983 + 3e4bdb7 commit 17fca5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

use Zend\Config,
Zend\Loader\PrefixPathMapper,
Zend\Loader\ShortNameLocater,
Zend\Loader\PluginLoader;

/**
Expand Down Expand Up @@ -65,7 +66,7 @@ class Cloud
/**
* Plugin loader for decorators
*
* @var \Zend\Loader\PrefixPathMapper
* @var \Zend\Loader\ShortNameLocater
*/
protected $_pluginLoader = null;

Expand Down Expand Up @@ -309,10 +310,10 @@ public function getTagDecorator()
/**
* Set plugin loaders for use with decorators
*
* @param \Zend\Loader\PrefixPathMapper $loader
* @param \Zend\Loader\ShortNameLocater $loader
* @return \Zend\Tag\Cloud
*/
public function setPluginLoader(PrefixPathMapper $loader)
public function setPluginLoader(ShortNameLocater $loader)
{
$this->_pluginLoader = $loader;
return $this;
Expand All @@ -321,7 +322,7 @@ public function setPluginLoader(PrefixPathMapper $loader)
/**
* Get the plugin loader for decorators
*
* @return \Zend\Loader\PrefixPathMapper
* @return \Zend\Loader\ShortNameLocater
*/
public function getPluginLoader()
{
Expand Down

0 comments on commit 17fca5b

Please sign in to comment.