File tree Expand file tree Collapse file tree
src/DependencyInjection/Compiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,15 +9,19 @@ class ParametersPass implements CompilerPassInterface
99{
1010 public function process (ContainerBuilder $ container ): void
1111 {
12+ $ this ->setMfaIssuer ($ container );
1213 $ this ->setTwigGlobal ($ container );
1314 }
1415
15- private function setTwigGlobal (ContainerBuilder $ container ): void
16+ private function setMfaIssuer (ContainerBuilder $ container ): void
1617 {
17- $ parameterBag = $ container ->getParameterBag ();
18+ $ container ->setParameter ('scheb_two_factor.totp.issuer ' , $ container ->getParameter ('dirigent.title ' ));
19+ }
1820
21+ private function setTwigGlobal (ContainerBuilder $ container ): void
22+ {
1923 $ variables = [
20- 'slug ' => $ parameterBag -> get ('dirigent.slug ' ),
24+ 'slug ' => $ container -> getParameter ('dirigent.slug ' ),
2125 ];
2226
2327 $ container ->getDefinition ('twig ' )->addMethodCall ('addGlobal ' , ['dirigent ' , $ variables ]);
You can’t perform that action at this time.
0 commit comments