Skip to content

Commit 3c4fe5b

Browse files
committed
Fix
1 parent 4826710 commit 3c4fe5b

4 files changed

Lines changed: 22 additions & 13 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN set -eux; \
1313
@composer \
1414
apcu \
1515
opcache \
16-
xdebug \
16+
# xdebug \
1717
;
1818

1919
RUN useradd -m vscode

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ jobs:
8282
composer_args: '--prefer-stable'
8383
stability: 'stable'
8484
coverage: true
85-
- php: '8.5'
85+
- php: '8.4'
8686
symfony: '7.4'
87-
composer_args: '--prefer-lowest'
87+
composer_args: '--prefer-stable'
8888
stability: 'stable'
8989

9090
# Symfony 8.0 (stable)

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ a2lix_auto_form:
217217
children_excluded: [id, createdAt]
218218
```
219219
220+
## Translations
221+
222+
If you need to manage form translations, please see the [A2lix TranslationFormBundle](https://github.com/a2lix/TranslationFormBundle), which is designed to work with this bundle.
223+
224+
A complete demonstration is also available at [a2lix/demo](https://github.com/a2lix/Demo).
225+
220226
## License
221227
222228
This package is available under the [MIT license](LICENSE).

src/A2lixAutoFormBundle.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ public function configure(DefinitionConfigurator $definition): void
3434
}
3535

3636
#[\Override]
37-
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
38-
{
39-
$container->import('../config/services.php');
40-
41-
$container->services()
42-
->get('a2lix_auto_form.form.type.auto_type')
43-
->arg('$globalExcludedChildren', $config['children_excluded'])
44-
;
45-
}
46-
4737
public function prependExtension(ContainerConfigurator $configurator, ContainerBuilder $container): void
4838
{
4939
if (!$container->hasExtension('a2lix_translation_form')) {
@@ -66,11 +56,24 @@ public function prependExtension(ContainerConfigurator $configurator, ContainerB
6656
}
6757
}
6858

59+
#[\Override]
60+
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
61+
{
62+
$container->import('../config/services.php');
63+
64+
$container->services()
65+
->get('a2lix_auto_form.form.type.auto_type')
66+
->arg('$globalExcludedChildren', $config['children_excluded'])
67+
;
68+
}
69+
70+
#[\Override]
6971
public function build(ContainerBuilder $container): void
7072
{
7173
$container->addCompilerPass($this);
7274
}
7375

76+
#[\Override]
7477
public function process(ContainerBuilder $container): void
7578
{
7679
if (!$container->hasExtension('a2lix_translation_form')) {

0 commit comments

Comments
 (0)