Skip to content

Commit 233d5b2

Browse files
authored
Merge pull request #2 from Wojdylak/default-config
Add default configuration for locations
2 parents 50463d3 + ea56f06 commit 233d5b2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ This installation instruction assumes that you're using Symfony Flex.
4040
composer require sylius/mcp-server-plugin
4141
```
4242

43-
2. Add configuration file `config/packages/sylius_mcp_server.yaml`:
44-
45-
```yaml
46-
imports:
47-
- { resource: "@SyliusMcpServerPlugin/config/config.yaml" }
48-
```
49-
5043
**Clear application cache by using command:**
5144

5245
```bash

src/DependencyInjection/Configuration.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,19 @@ public function getConfigTreeBuilder(): TreeBuilder
7171
->end()
7272
->end()
7373
->end()
74+
->defaultValue([
75+
[
76+
'base_path' => '%sylius_mcp_server.plugin_root%',
77+
'scan_dirs' => ['src/Tool'],
78+
],
79+
])
7480
->beforeNormalization()
7581
->always(function ($v) {
7682
$v[] = [
7783
'base_path' => '%sylius_mcp_server.plugin_root%',
7884
'scan_dirs' => ['src/Tool'],
7985
];
86+
8087
return $v;
8188
})
8289
->end()

0 commit comments

Comments
 (0)