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 * Interface for allowing attachment of shared aggregate listeners.
16 interface SharedEventAggregateAwareInterface
19 * Attach a listener aggregate
21 * @param SharedListenerAggregateInterface $aggregate
22 * @param int $priority If provided, a suggested priority for the aggregate to use
23 * @return mixed return value of {@link SharedListenerAggregateInterface::attachShared()}
25 public function attachAggregate(SharedListenerAggregateInterface
$aggregate, $priority = 1);
28 * Detach a listener aggregate
30 * @param SharedListenerAggregateInterface $aggregate
31 * @return mixed return value of {@link SharedListenerAggregateInterface::detachShared()}
33 public function detachAggregate(SharedListenerAggregateInterface
$aggregate);