Skip to content

Commit

Permalink
Fix the bundle path to support the new bundle structure
Browse files Browse the repository at this point in the history
Without the proper definition of the bundle path, the templates are not
discovered by TwigBundle when placed in the new location.
  • Loading branch information
stof committed Apr 15, 2024
1 parent ff7fde8 commit 2bded34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/KnpMenuBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public function build(ContainerBuilder $container): void
$container->addCompilerPass(new AddRenderersPass());
$container->addCompilerPass(new AddVotersPass());
}

public function getPath(): string
{
return \dirname(__DIR__);
}
}

0 comments on commit 2bded34

Please sign in to comment.