Configuration/Services.yaml
services:
_defaults:
autowire: true
autoconfigure: true
public: false
EliasHaeussler\Typo3Solver\:
resource: '../Classes/*'
exclude:
- '../Classes/Error/*'
- '../Classes/Exception/*'
- '../Classes/Extension.php'
- '../Classes/Http/EventStream.php'
- '../Classes/ProblemSolving/Problem/Problem.php'
- '../Classes/ProblemSolving/Solution/Solution.php'
EliasHaeussler\Typo3Solver\Command\CacheFlushCommand:
tags:
- name: console.command
command: 'solver:cache:flush'
description: 'Flush the solutions cache'
EliasHaeussler\Typo3Solver\Command\ListModelsCommand:
tags:
- name: console.command
command: 'solver:list-models'
description: 'List available OpenAI models'
schedulable: false
EliasHaeussler\Typo3Solver\Command\SolveCommand:
tags:
- name: console.command
command: 'solver:solve'
description: 'Solve a specific problem'
schedulable: false
OpenAI\Client:
factory: ['@EliasHaeussler\Typo3Solver\Http\ClientFactory', 'get']