push( self::createJobForUser( $user ) ); } /** * @param User $user * @return NotificationRequestJob */ private static function createJobForUser( User $user ): NotificationRequestJob { $centralId = CentralIdLookup::factory()->centralIdFromLocalUser( $user ); $params = [ 'centralId' => $centralId ]; return new NotificationRequestJob( 'EchoPushNotificationRequest', $params ); } }