Module Service improvements

Created on 22 May 2023, over 1 year ago
Updated 20 June 2023, over 1 year ago

Problem/Motivation

Some improvements could be applied to the ContentAiService class:

  • Correct the injected service name in contentai.services.yml (openai.services is not a valid service)
  • Move class to the module root
  • Fix phpcs issues
  • Add methods return types
  • Complete the PHPDoc of some methods
  • Use the StringTranslationTrait instead of t() function
  • Include the config.factory service using dependency injection
📌 Task
Status

RTBC

Version

1.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024