Skip to content

Commit 1a74769

Browse files
[FrameworkBundle] Fix registering workflow.registry
1 parent 5f77c3f commit 1a74769

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
929929

930930
$loader->load('workflow.php');
931931

932-
$registryDefinition = $container->getDefinition('.workflow.registry');
932+
$registryDefinition = $container->getDefinition('workflow.registry');
933933

934934
foreach ($config['workflows'] as $name => $workflow) {
935935
$type = $workflow['type'];

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ public function testWorkflows()
385385
$this->assertInstanceOf(Reference::class, $markingStoreRef);
386386
$this->assertEquals('workflow_service', (string) $markingStoreRef);
387387

388-
$this->assertTrue($container->hasDefinition('.workflow.registry'), 'Workflow registry is registered as a service');
389-
$registryDefinition = $container->getDefinition('.workflow.registry');
388+
$this->assertTrue($container->hasDefinition('workflow.registry'), 'Workflow registry is registered as a service');
389+
$registryDefinition = $container->getDefinition('workflow.registry');
390390
$this->assertGreaterThan(0, \count($registryDefinition->getMethodCalls()));
391391
}
392392

src/Symfony/Bundle/TwigBundle/DependencyInjection/Compiler/ExtensionPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function process(ContainerBuilder $container)
128128
$container->getDefinition('twig.extension.expression')->addTag('twig.extension');
129129
}
130130

131-
if (!class_exists(Workflow::class) || !$container->has('.workflow.registry')) {
131+
if (!class_exists(Workflow::class) || !$container->has('workflow.registry')) {
132132
$container->removeDefinition('workflow.twig_extension');
133133
} else {
134134
$container->getDefinition('workflow.twig_extension')->addTag('twig.extension');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy