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

Commit

Permalink
Merge remote-tracking branch 'zf2/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 62 changed files with 943 additions and 928 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

14 changes: 0 additions & 14 deletions .travis/run-tests.sh

This file was deleted.

7 changes: 0 additions & 7 deletions .travis/skipped-components

This file was deleted.

61 changes: 0 additions & 61 deletions .travis/tested-components

This file was deleted.

25 changes: 16 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
{
"name": "zendframework/zend-module-manager",
"description": "Zend\\ModuleManager component",
"name": "zendframework/zend-modulemanager",
"description": " ",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"module-manager"
"modulemanager"
],
"autoload": {
"psr-4": {
"Zend\\ModuleManager\\": "src/"
"Zend\\ModuleManager": "src/"
}
},
"require": {
"php": ">=5.3.23"
"php": ">=5.3.3",
"zendframework/zend-eventmanager": "self.version",
"zendframework/zend-stdlib": "self.version"
},
"require-dev": {
"fabpot/php-cs-fixer": "1.7.*",
"satooshi/php-coveralls": "dev-master",
"phpunit/PHPUnit": "~4.0"
"suggest": {
"zendframework/zend-config": "Zend\\Config component",
"zendframework/zend-loader": "Zend\\Loader component",
"zendframework/zend-servicemanager": "Zend\\ServiceManager component"
},
"homepage": "https://github.com/zendframework/zend-module-manager",
"autoload-dev": {
"psr-4": {
"ZendTest\\ModuleManager\\": "test/"
}
},
"require-dev": {
"fabpot/php-cs-fixer": "1.7.*",
"satooshi/php-coveralls": "dev-master",
"phpunit/PHPUnit": "~4.0"
}
}
3 changes: 2 additions & 1 deletion src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
* @package Zend_ModuleManager
*/
interface ExceptionInterface
{}
{
}
8 changes: 4 additions & 4 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

/**
* Invalid Argument Exception
*
*
* @category Zend
* @package Zend_ModuleManager
* @subpackage Exception
*/
class InvalidArgumentException extends \InvalidArgumentException implements
ExceptionInterface
{}
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}
5 changes: 3 additions & 2 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@

/**
* Runtime Exception
*
*
* @category Zend
* @package Zend_ModuleManager
* @subpackage Exception
*/
class RuntimeException extends \RuntimeException implements ExceptionInterface
{}
{
}
4 changes: 2 additions & 2 deletions src/Feature/BootstrapListenerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Zend\ModuleManager\Feature;

use Zend\EventManager\Event;
use Zend\EventManager\EventInterface;

/**
* Boostrap listener provider interface
Expand All @@ -26,5 +26,5 @@ interface BootstrapListenerInterface
*
* @return array
*/
public function onBootstrap(Event $e);
public function onBootstrap(EventInterface $e);
}
25 changes: 6 additions & 19 deletions src/Feature/ConfigProviderInterface.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_ModuleManager
*/

namespace Zend\ModuleManager\Feature;
Expand All @@ -25,14 +14,12 @@
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface ConfigProviderInterface
{
/**
* Returns configuration to merge with application configuration
*
*
* @return array|\Traversable
*/
public function getConfig();
Expand Down
27 changes: 27 additions & 0 deletions src/Feature/ControllerPluginProviderInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_ModuleManager
*/

namespace Zend\ModuleManager\Feature;

/**
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
*/
interface ControllerPluginProviderInterface
{
/**
* Expected to return \Zend\ServiceManager\Config object or array to
* seed such an object.
*
* @return array|\Zend\ServiceManager\Config
*/
public function getControllerPluginConfig();
}
27 changes: 27 additions & 0 deletions src/Feature/ControllerProviderInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_ModuleManager
*/

namespace Zend\ModuleManager\Feature;

/**
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
*/
interface ControllerProviderInterface
{
/**
* Expected to return \Zend\ServiceManager\Configuration object or array to
* seed such an object.
*
* @return array|\Zend\ServiceManager\Configuration
*/
public function getControllerConfig();
}
29 changes: 9 additions & 20 deletions src/Feature/InitProviderInterface.php
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
<?php
/**
* Zend Framework
* Zend Framework (http://framework.zend.com/)
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_ModuleManager
*/

namespace Zend\ModuleManager\Feature;

use Zend\ModuleManager\ModuleManagerInterface;

/**
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface InitProviderInterface
{
/**
* Initialize workflow
*
* @param \Zend\ModuleManager\Manager $manager
* @param ModuleManagerInterface $manager
* @return void
*/
public function init($manager = null);
public function init(ModuleManagerInterface $manager);
}
12 changes: 6 additions & 6 deletions src/Feature/LocatorRegisteredInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
namespace Zend\ModuleManager\Feature;

/**
* LocatorRegistered
* LocatorRegistered
*
* By implementing this interface in a Module class, the instance of the Module
* class will be automatically injected into any DI-configured object which has
* a constructor or setter parameter which is type hinted with the Module class
* name. Implementing this interface obviously does not require adding any
* By implementing this interface in a Module class, the instance of the Module
* class will be automatically injected into any DI-configured object which has
* a constructor or setter parameter which is type hinted with the Module class
* name. Implementing this interface obviously does not require adding any
* methods to your class.
*
*
* @category Zend
* @package Zend_ModuleManager
* @subpackage Feature
Expand Down
Loading

0 comments on commit 163015b

Please sign in to comment.