Skip to content

Commit c7d4a74

Browse files
committed
fix: service factory type and class visibility
1 parent a3acc2c commit c7d4a74

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"require": {
1414
"php": "^8.1.0",
1515
"openai-php/client": "^0.3.4",
16-
"rector/rector": "^0.14.8",
1716
"symfony/config": "^5.4.21|^6.2.7",
1817
"symfony/dependency-injection": "^5.4.21|^6.2.7",
1918
"symfony/http-kernel": "^5.4.21|^6.2.7"
2019
},
2120
"require-dev": {
2221
"laravel/pint": "^1.6.0",
2322
"phpstan/phpstan": "^1.10.3",
23+
"rector/rector": "^0.14.8",
2424
"symfony/phpunit-bridge": "^6.2.7"
2525
},
2626
"autoload": {

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
]);
1414

1515
$rectorConfig->skip([
16-
__DIR__.'/src/Contracts/Response.php',
16+
__DIR__.'/src/Resources/config/',
1717
]);
1818

1919
$rectorConfig->rules([

src/OpenAIBundle.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
use Symfony\Component\HttpKernel\Bundle\Bundle;
88

9-
/**
10-
* @internal
11-
*/
129
final class OpenAIBundle extends Bundle
1310
{
1411
}

src/Resources/config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
return static function (ContainerConfigurator $container) {
1111
$container->services()
1212
->set(Client::class)
13-
->factory(OpenAI::client(...))
13+
->factory([OpenAI::class, 'client'])
1414
->args([
1515
abstract_arg('API Key'),
1616
abstract_arg('Organisation'),

0 commit comments

Comments
 (0)