Skip to content

Commit ad5ea62

Browse files
Fix Transformer configuration & add missing aliases on monolog handlers
1 parent f2586cb commit ad5ea62

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/CleverAgeProcessBundle.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function build(ContainerBuilder $container): void
2929
parent::build($container);
3030

3131
$container->addCompilerPass(
32-
new RegistryCompilerPass(TransformerRegistry::class, 'cleverage.transformer', 'addTransformer')
32+
new RegistryCompilerPass('cleverage_process.registry.transformer', 'cleverage.transformer', 'addTransformer')
3333
);
3434

3535
$container->addCompilerPass(new CheckSerializerCompilerPass());

src/DependencyInjection/CleverAgeProcessExtension.php

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\DependencyInjection\Definition;
2020
use Symfony\Component\DependencyInjection\Extension\Extension;
2121
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
22+
use Symfony\Component\DependencyInjection\Reference;
2223
use Symfony\Component\Finder\Finder;
2324

2425
/**
@@ -45,6 +46,10 @@ public function load(array $configs, ContainerBuilder $container): void
4546
$transformerDefinition = new Definition(GenericTransformer::class);
4647
$transformerDefinition->setAutowired(true);
4748
$transformerDefinition->setPublic(false);
49+
$transformerDefinition->setArguments([
50+
new Reference('cleverage_process.context.contextual_option_resolver'),
51+
new Reference('cleverage_process.registry.transformer'),
52+
]);
4853
$transformerDefinition->addMethodCall('initialize', [$transformerCode, $transformerConfig]);
4954
$transformerDefinition->addTag('cleverage.transformer');
5055

0 commit comments

Comments
 (0)