Skip to content

Commit 65ada24

Browse files
committed
Renamed Default to Static
1 parent 3499463 commit 65ada24

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/AppBundle/Controller/DefaultController.php renamed to src/AppBundle/Controller/StaticController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
* @author Ryan Weaver <[email protected]>
2121
* @author Javier Eguiluz <[email protected]>
2222
*/
23-
class DefaultController extends Controller
23+
class StaticController extends Controller
2424
{
2525
/**
2626
* @Route("/", name="homepage")
2727
*/
28-
public function indexAction()
28+
public function homepageAction()
2929
{
30-
return $this->render('default/homepage.html.twig');
30+
return $this->render('static/homepage.html.twig');
3131
}
3232
}

src/AppBundle/Twig/SourceCodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function showSourceCode(\Twig_Environment $twig, $template)
4747
{
4848
$this->template = $template;
4949

50-
return $twig->render('default/_source_code.html.twig', array(
50+
return $twig->render('static/_source_code.html.twig', array(
5151
'controller_source_code' => $this->getControllerCode(),
5252
'controller_file_path' => $this->getControllerRelativePath(),
5353
'template_source_code' => htmlspecialchars($this->getTemplateCode(), ENT_QUOTES, 'UTF-8'),

0 commit comments

Comments
 (0)