Skip to content

Commit 4bd44ef

Browse files
committed
Add docs example for Symfony 7.4's array based config
1 parent c82aea9 commit 4bd44ef

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/configuring-the-bundle.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ The default currency for your application can be set with the `default_currency`
99
babdev_money:
1010
default_currency: EUR
1111
```
12+
13+
```php
14+
<?php // config/packages/babdev_money.php
15+
16+
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
17+
18+
return App::config([
19+
'babdev_money' => [
20+
'default_currency' => 'EUR',
21+
],
22+
]);
23+
```

0 commit comments

Comments
 (0)