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

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into feat…
Browse files Browse the repository at this point in the history
…ure/console
  • Loading branch information
Thinkscape committed Jul 12, 2012
2 parents 59a1084 + b26220b commit 27f4879
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 26 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "zendframework/zend-eventmanager",
"description": " ",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
Expand Down
3 changes: 2 additions & 1 deletion src/SharedEventManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class SharedEventManager implements SharedEventManagerInterface
* "getAll" event of both an AbstractResource and EntityResource:
*
* <code>
* SharedEventManager::getInstance()->connect(
* $sharedEventManager = new SharedEventManager();
* $sharedEventManager->attach(
* array('My\Resource\AbstractResource', 'My\Resource\EntityResource'),
* 'getAll',
* function ($e) use ($cache) {
Expand Down
16 changes: 8 additions & 8 deletions test/EventManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

namespace ZendTest\EventManager;

use ArrayIterator,
stdClass,
Zend\EventManager\Event,
Zend\EventManager\EventInterface,
Zend\EventManager\EventManager,
Zend\EventManager\ResponseCollection,
Zend\EventManager\StaticEventManager,
Zend\Stdlib\CallbackHandler;
use ArrayIterator;
use stdClass;
use Zend\EventManager\Event;
use Zend\EventManager\EventInterface;
use Zend\EventManager\EventManager;
use Zend\EventManager\ResponseCollection;
use Zend\EventManager\StaticEventManager;
use Zend\Stdlib\CallbackHandler;

/**
* @category Zend
Expand Down
5 changes: 3 additions & 2 deletions test/FilterChainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
*/

namespace ZendTest\Stdlib;
use Zend\EventManager\FilterChain,
Zend\Stdlib\CallbackHandler;

use Zend\EventManager\FilterChain;
use Zend\Stdlib\CallbackHandler;

/**
* @category Zend
Expand Down
5 changes: 3 additions & 2 deletions test/GlobalEventManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
*/

namespace ZendTest\EventManager;
use Zend\EventManager\GlobalEventManager,
Zend\EventManager\EventManager;

use Zend\EventManager\GlobalEventManager;
use Zend\EventManager\EventManager;

/**
* @category Zend
Expand Down
8 changes: 4 additions & 4 deletions test/StaticEventManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

namespace ZendTest\EventManager;

use PHPUnit_Framework_TestCase as TestCase,
stdClass,
Zend\EventManager\EventManager,
Zend\EventManager\StaticEventManager;
use PHPUnit_Framework_TestCase as TestCase;
use stdClass;
use Zend\EventManager\EventManager;
use Zend\EventManager\StaticEventManager;

/**
* @category Zend
Expand Down
6 changes: 3 additions & 3 deletions test/StaticIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

namespace ZendTest\EventManager;

use Zend\EventManager\EventManager,
Zend\EventManager\StaticEventManager,
PHPUnit_Framework_TestCase as TestCase;
use Zend\EventManager\EventManager;
use Zend\EventManager\StaticEventManager;
use PHPUnit_Framework_TestCase as TestCase;

/**
* @category Zend
Expand Down
4 changes: 2 additions & 2 deletions test/TestAsset/ClassWithEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace ZendTest\EventManager\TestAsset;

use Zend\EventManager\EventManagerInterface,
Zend\EventManager\EventManager;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\EventManager;

/**
* @category Zend
Expand Down
4 changes: 2 additions & 2 deletions test/TestAsset/MockAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace ZendTest\EventManager\TestAsset;

use Zend\EventManager\EventManagerInterface,
Zend\EventManager\ListenerAggregateInterface;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;

/**
* @category Zend
Expand Down
4 changes: 2 additions & 2 deletions test/TestAsset/StaticEventsMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

namespace ZendTest\EventManager\TestAsset;

use Zend\EventManager\SharedEventManagerInterface,
Zend\Stdlib\CallbackHandler;
use Zend\EventManager\SharedEventManagerInterface;
use Zend\Stdlib\CallbackHandler;

/**
* @category Zend
Expand Down

0 comments on commit 27f4879

Please sign in to comment.