user_loader = $user_loader; $this->db = $db; $this->cache = $cache; $this->user = $user; $this->auth = $auth; $this->config = $config; $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; } /** * Set notification manager (required) * * @param phpbb_notification_manager $notification_manager */ public function set_notification_manager(phpbb_notification_manager $notification_manager) { $this->notification_manager = $notification_manager; } /** * Add a notification to the queue * * @param phpbb_notification_type_interface $notification */ public function add_to_queue(phpbb_notification_type_interface $notification) { $this->queue[] = $notification; } /** * Empty the queue */ protected function empty_queue() { $this->queue = array(); } }