From fec3635d9b72639d4fbc7bf4b64a391c89898862 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Fri, 12 Sep 2025 13:40:55 +0200 Subject: [PATCH] [AI Bundle] Remove named argument usage --- src/ai-bundle/config/services.php | 8 ++++---- src/ai-bundle/src/Command/ChatCommand.php | 2 +- src/ai-bundle/tests/Command/ChatCommandTest.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ai-bundle/config/services.php b/src/ai-bundle/config/services.php index 88be4784f..5fe7c4dc5 100644 --- a/src/ai-bundle/config/services.php +++ b/src/ai-bundle/config/services.php @@ -145,22 +145,22 @@ // commands ->set('ai.command.chat', ChatCommand::class) ->args([ - tagged_locator('ai.agent', indexAttribute: 'name'), + tagged_locator('ai.agent', 'name'), ]) ->tag('console.command') ->set('ai.command.setup_store', SetupStoreCommand::class) ->args([ - tagged_locator('ai.store', indexAttribute: 'name'), + tagged_locator('ai.store', 'name'), ]) ->tag('console.command') ->set('ai.command.drop_store', DropStoreCommand::class) ->args([ - tagged_locator('ai.store', indexAttribute: 'name'), + tagged_locator('ai.store', 'name'), ]) ->tag('console.command') ->set('ai.command.index', IndexCommand::class) ->args([ - tagged_locator('ai.indexer', indexAttribute: 'name'), + tagged_locator('ai.indexer', 'name'), ]) ->tag('console.command') ; diff --git a/src/ai-bundle/src/Command/ChatCommand.php b/src/ai-bundle/src/Command/ChatCommand.php index ee34f132a..46a970bdb 100644 --- a/src/ai-bundle/src/Command/ChatCommand.php +++ b/src/ai-bundle/src/Command/ChatCommand.php @@ -28,7 +28,7 @@ use Symfony\Component\DependencyInjection\ServiceLocator; /** - * @author Oskar Stark + * @author Oskar Stark */ #[AsCommand( name: 'ai:chat', diff --git a/src/ai-bundle/tests/Command/ChatCommandTest.php b/src/ai-bundle/tests/Command/ChatCommandTest.php index 587329606..3e552016a 100644 --- a/src/ai-bundle/tests/Command/ChatCommandTest.php +++ b/src/ai-bundle/tests/Command/ChatCommandTest.php @@ -10,7 +10,7 @@ */ /** - * @author Oskar Stark + * @author Oskar Stark */ namespace Symfony\AI\AiBundle\Tests\Command;