Skip to content

Commit 60637fd

Browse files
committed
Merge branch '2.0'
2 parents 558593c + 0aa3655 commit 60637fd

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

book/controller.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,15 @@ The Symfony templating engine is explained in great detail in the
521521
$templating = $this->get('templating');
522522
$content = $templating->render('AcmeHelloBundle:Hello:index.html.twig', array('name' => $name));
523523

524+
.. note::
525+
526+
It is possible to render templates in deeper subdirectories as well, however
527+
be careful to avoid the pitfall of making your directory structure unduly
528+
elaborate::
529+
530+
$templating->render('AcmeHelloBundle:Hello/Greetings:index.html.twig', array('name' => $name));
531+
// index.html.twig found in Resources/views/Hello/Greetings is rendered.
532+
524533
.. index::
525534
single: Controller; Accessing services
526535

book/page_creation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,10 @@ some of the most common elements of a bundle:
689689

690690
* ``Controller/`` contains the controllers of the bundle (e.g. ``HelloController.php``);
691691

692+
* ``DependencyInjection/`` holds certain dependency injection extension classes,
693+
which may import service configuration, register compiler passes or more
694+
(this directory is not necessary);
695+
692696
* ``Resources/config/`` houses configuration, including routing configuration
693697
(e.g. ``routing.yml``);
694698

contributing/code/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ According to `Uncyclopedia`_:
1414
The License
1515
-----------
1616

17-
Copyright (c) 2004-2011 Fabien Potencier
17+
Copyright (c) 2004-2012 Fabien Potencier
1818

1919
Permission is hereby granted, free of charge, to any person obtaining a copy
2020
of this software and associated documentation files (the "Software"), to deal

contributing/documentation/format.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ Installing the Sphinx extensions
146146
147147
# ...
148148
sys.path.append(os.path.abspath('_exts'))
149-
149+
150+
# adding PhpLexer
151+
from sphinx.highlighting import lexers
152+
from pygments.lexers.web import PhpLexer
153+
150154
# ...
151155
# add the extensions to the list of extensions
152156
extensions = [..., 'sensio.sphinx.refinclude', 'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode']

0 commit comments

Comments
 (0)