Skip to content

Commit 2bded34

Browse files
committed
Fix the bundle path to support the new bundle structure
Without the proper definition of the bundle path, the templates are not discovered by TwigBundle when placed in the new location.
1 parent ff7fde8 commit 2bded34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/KnpMenuBundle.php

+5
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ public function build(ContainerBuilder $container): void
2424
$container->addCompilerPass(new AddRenderersPass());
2525
$container->addCompilerPass(new AddVotersPass());
2626
}
27+
28+
public function getPath(): string
29+
{
30+
return \dirname(__DIR__);
31+
}
2732
}

0 commit comments

Comments
 (0)