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

Commit

Permalink
Merge branch 'feature/phpdoc-mismatch' of https://github.com/micheh/zf2
Browse files Browse the repository at this point in the history
… into hotfix/phpdoc
  • Loading branch information
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/Feature/BootstrapListenerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface BootstrapListenerInterface
/**
* Listen to the bootstrap event
*
* @param EventInterface $e
* @return array
*/
public function onBootstrap(EventInterface $e);
Expand Down
6 changes: 3 additions & 3 deletions src/Feature/ControllerProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
interface ControllerProviderInterface
{
/**
* Expected to return \Zend\ServiceManager\Configuration object or array to
* seed such an object.
* Expected to return \Zend\ServiceManager\Config object or array to seed
* such an object.
*
* @return array|\Zend\ServiceManager\Configuration
* @return array|\Zend\ServiceManager\Config
*/
public function getControllerConfig();
}
7 changes: 5 additions & 2 deletions src/Listener/ConfigListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function addConfigStaticPaths($staticPaths)
/**
* Add a static path of config files to merge after loading modules
*
* @param string $globPath
* @param string $staticPath
* @return ConfigListener
*/
public function addConfigStaticPath($staticPath)
Expand All @@ -276,7 +276,9 @@ public function addConfigStaticPath($staticPath)
/**
* Add an array of paths of config files to merge after loading modules
*
* @param mixed $paths
* @param Traversable|array $paths
* @param string $type
* @throws Exception\InvalidArgumentException
* @return ConfigListener
*/
protected function addConfigPaths($paths, $type)
Expand Down Expand Up @@ -304,6 +306,7 @@ protected function addConfigPaths($paths, $type)
*
* @param string $path
* @param string $type
* @throws Exception\InvalidArgumentException
* @return ConfigListener
*/
protected function addConfigPath($path, $type)
Expand Down
4 changes: 4 additions & 0 deletions src/Listener/ListenerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function getModulePaths()
* Set an array of paths where modules reside
*
* @param array|Traversable $modulePaths
* @throws Exception\InvalidArgumentException
* @return ListenerOptions
*/
public function setModulePaths($modulePaths)
Expand Down Expand Up @@ -111,6 +112,7 @@ public function getConfigStaticPaths()
* Set the glob patterns to use for loading additional config files
*
* @param array|Traversable $configGlobPaths
* @throws Exception\InvalidArgumentException
* @return ListenerOptions
*/
public function setConfigGlobPaths($configGlobPaths)
Expand All @@ -131,6 +133,7 @@ public function setConfigGlobPaths($configGlobPaths)
* Set the static paths to use for loading additional config files
*
* @param array|Traversable $configStaticPaths
* @throws Exception\InvalidArgumentException
* @return ListenerOptions
*/
public function setConfigStaticPaths($configStaticPaths)
Expand Down Expand Up @@ -162,6 +165,7 @@ public function getExtraConfig()
* for unit testing purposes.
*
* @param array|Traversable $extraConfig
* @throws Exception\InvalidArgumentException
* @return ListenerOptions
*/
public function setExtraConfig($extraConfig)
Expand Down
4 changes: 4 additions & 0 deletions src/Listener/ServiceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ServiceListener implements ServiceListenerInterface

/**
* @param ServiceManager $serviceManager
* @param null|array $configuration
*/
public function __construct(ServiceManager $serviceManager, $configuration = null)
{
Expand All @@ -75,6 +76,7 @@ public function setDefaultServiceConfig($configuration)
* @param string $key Configuration key
* @param string $moduleInterface FQCN as string
* @param string $method Method name
* @throws Exception\RuntimeException
* @return ServiceListener
*/
public function addServiceManager($serviceManager, $key, $moduleInterface, $method)
Expand Down Expand Up @@ -187,6 +189,7 @@ public function onLoadModule(ModuleEvent $e)
* used to configure the service manager.
*
* @param ModuleEvent $e
* @throws Exception\RuntimeException
* @return void
*/
public function onLoadModulesPost(ModuleEvent $e)
Expand Down Expand Up @@ -235,6 +238,7 @@ public function onLoadModulesPost(ModuleEvent $e)
* the internal service configuration.
*
* @param ServiceConfig|string $config Instance of ServiceConfig or class name
* @throws Exception\RuntimeException
* @return array
*/
protected function serviceConfigToArray($config)
Expand Down
1 change: 1 addition & 0 deletions src/Listener/ServiceListenerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Zend\ModuleManager\Listener;

use Zend\EventManager\ListenerAggregateInterface;
use Zend\ServiceManager\ServiceManager;

/**
* @category Zend
Expand Down
2 changes: 2 additions & 0 deletions src/ModuleEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function getModuleName()
* Set the name of a given module
*
* @param string $moduleName
* @throws Exception\InvalidArgumentException
* @return ModuleEvent
*/
public function setModuleName($moduleName)
Expand Down Expand Up @@ -88,6 +89,7 @@ public function getModule()
* Set module object to compose in this event
*
* @param object $module
* @throws Exception\InvalidArgumentException
* @return ModuleEvent
*/
public function setModule($module)
Expand Down
2 changes: 2 additions & 0 deletions src/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function loadModules()
* Load a specific module by name.
*
* @param string $moduleName
* @throws Exception\RuntimeException
* @triggers loadModule.resolve
* @triggers loadModule
* @return mixed Module's Module class
Expand Down Expand Up @@ -192,6 +193,7 @@ public function getModules()
* Set an array or Traversable of module names that this module manager should load.
*
* @param mixed $modules array or Traversable of module names
* @throws Exception\InvalidArgumentException
* @return ModuleManager
*/
public function setModules($modules)
Expand Down

0 comments on commit 7ab2816

Please sign in to comment.