Skip to content

Commit fb9d419

Browse files
committed
Use Symfony's template controller
1 parent 3499463 commit fb9d419

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

app/config/routing.yml

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
app:
22
resource: @AppBundle/Controller/
33
type: annotation
4+
5+
# The FrameworkBundle:Template:template controller can be used when you only
6+
# need to render a template without any variables.
7+
# See http://symfony.com/doc/current/cookbook/templating/render_without_controller.html
8+
homepage:
9+
path: /
10+
defaults:
11+
_controller: FrameworkBundle:Template:template
12+
template: 'default/homepage.html.twig'

src/AppBundle/Controller/DefaultController.php

-32
This file was deleted.

0 commit comments

Comments
 (0)