1<?php 2/** 3 * Zend Framework (http://framework.zend.com/) 4 * 5 * @link http://github.com/zendframework/zf2 for the canonical source repository 6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 7 * @license http://framework.zend.com/license/new-bsd New BSD License 8 */ 9 10namespace Zend\EventManager; 11 12/** 13 * Interface to automate setter injection for a SharedEventManagerInterface instance 14 */ 15interface SharedEventManagerAwareInterface 16{ 17 /** 18 * Inject a SharedEventManager instance 19 * 20 * @param SharedEventManagerInterface $sharedEventManager 21 * @return SharedEventManagerAwareInterface 22 */ 23 public function setSharedManager(SharedEventManagerInterface $sharedEventManager); 24 25 /** 26 * Get shared collections container 27 * 28 * @return SharedEventManagerInterface 29 */ 30 public function getSharedManager(); 31 32 /** 33 * Remove any shared collections 34 * 35 * @return void 36 */ 37 public function unsetSharedManager(); 38} 39