src/Sonic.php
public function setAccessControlManager(AccessControlManager $accessControlManagerObject)
	{
		if(self::$_instance === NULL)
			throw new SonicRuntimeException('Sonic instance not initialized');
		
		if(!array_key_exists('sgoendoer\Sonic\AccessControl\AccessControlManager', class_parents($accessControlManagerObject)))
		{
			throw new SonicRuntimeException('AccessControlManager must implement sgoendoer\Sonic\AccessControl\AccessControlManager');
		}
		else
			$this->accessControlManager = $accessControlManagerObject;
		
		return self::$_instance;
	}
public function setAccessControlManager(AccessControlManager $accessControlManagerObject)
	{
		if(self::$_instance === NULL)
			throw new SonicRuntimeException('Sonic instance not initialized');
		
		if(!array_key_exists('sgoendoer\Sonic\AccessControl\AccessControlManager', class_parents($accessControlManagerObject)))
		{
			throw new SonicRuntimeException('AccessControlManager must implement sgoendoer\Sonic\AccessControl\AccessControlManager');
		}
		else
			$this->accessControlManager = $accessControlManagerObject;
		
		return self::$_instance;
	}
public function setAccessControlManager ( AccessControlManager $ accessControlManagerObject ) { if ( self :: $ _instance === NULL ) throw new SonicRuntimeException ( 'Sonic instance not initialized' ) ; if ( ! array_key_exists ( 'sgoendoer\Sonic\AccessControl\AccessControlManager' , class_parents ( $ accessControlManagerObject ) ) ) { throw new SonicRuntimeException ( 'AccessControlManager must implement sgoendoer\Sonic\AccessControl\AccessControlManager' ) ; } else $ this -> accessControlManager = $ accessControlManagerObject ; return self :: $ _instance ; }
sets the AccessControlManager

@param $accessControlManagerObject The AccessControlManager instance
@return Sonic instance
sets the AccessControlManager