3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\EventManager
;
14 * Abstract aggregate listener
16 abstract class AbstractListenerAggregate
implements ListenerAggregateInterface
19 * @var \Zend\Stdlib\CallbackHandler[]
21 protected $listeners = array();
26 public function detach(EventManagerInterface
$events)
28 foreach ($this->listeners
as $index => $callback) {
29 if ($events->detach($callback)) {
30 unset($this->listeners
[$index]);