Skip to content

Commit beebb1c

Browse files
committed
feature #4 Renamed Default to Static (WouterJ)
This PR was merged into the master branch. Discussion ---------- Renamed Default to Static A little while ago, @weaverryan, @xabbuh and me decided Static was a much better name for this than Default. Default doesn't really explain anything. Does it mean that every request will go to this controller *by default*? Nope... Btw, this makes me wonder if we shouldn't use http://symfony.com/doc/current/cookbook/templating/render_without_controller.html instead of this controller? Commits ------- fb9d419 Use Symfony's template controller
2 parents 3499463 + fb9d419 commit beebb1c

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)