8000 minor #922 Make use of getParameter() shortcut method of Controller (… · symfony/symfony-standard@89b5591 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 89b5591

Browse files
committed
minor #922 Make use of getParameter() shortcut method of Controller (xelaris)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #922). Discussion ---------- Make use of getParameter() shortcut method of Controller Commits ------- 4182769 Make use of getParameter() shortcut method
2 parents cb29d23 + 4182769 commit 89b5591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppBundle/Controller/DefaultController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function indexAction(Request $request)
1515
{
1616
// replace this example code with whatever you need
1717
return $this->render('default/index.html.twig', array(
18-
'base_dir' => realpath($this->container->getParameter('kernel.root_dir').'/..'),
18+
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
1919
));
2020
}
2121
}

0 commit comments

Comments
 (0)
0