zendframework/zf2 — pull request #2686 by Lansoweb (2012-10-05 16:18:42+00:00)
Title: Adding code to allow EventManager trigger listeners using wildcard identifier

As in https://github.com/zendframework/zf2/pull/2626, the current EventManager does not trigger using identifier wildcards, just event ones.

Example:
This works as expected:
```php
$sharedEventManager->attach('foo', '*', function($e){};
$eventManager->trigger('bar',$this,array());
```
This does not:
```php
$sharedEventManager->attach('*', 'bar', function($e){};
$eventManager->trigger('bar',$this,array());
```

As stated by Matthew, the line https://github.com/zendframework/zf2/blob/master/library/Zend/EventManager/EventManager.php#L446
just handles event wildcards.

This PR tries to solve this.