@@ -86,7 +86,7 @@ to creating a page?
86
86
#. *Create a controller *: The method below the route - ``numberAction() `` - is called
87
87
the *controller *: this is a function where *you * build the page and ultimately
88
88
return a ``Response `` object. You'll learn more about :doc: `controllers </controller >`
89
- in their own section, including how to return JSON responses;
89
+ in their own section, including how to return JSON responses.
90
90
91
91
The Web Debug Toolbar: Debugging Dream
92
92
--------------------------------------
@@ -133,9 +133,9 @@ variable so we can render that::
133
133
{
134
134
$number = mt_rand(0, 100);
135
135
136
- return $this->render('lucky/number.html.twig', array(
137
- 'number' => $number
138
- ) );
136
+ return $this->render('lucky/number.html.twig', [
137
+ 'number' => $number,
138
+ ] );
139
139
}
140
140
}
141
141
@@ -184,7 +184,7 @@ So what about the other directories in the project?
184
184
185
185
``var/ ``
186
186
This is where automatically-created files are stored, like cache files
187
- (``var/cache/ ``) and logs (``var/logs/ ``).
187
+ (``var/cache/ ``), logs (``var/logs/ ``) and (`` var/sessions / ``).
188
188
189
189
``vendor/ ``
190
190
Third-party (i.e. "vendor") libraries live here! These are downloaded via the `Composer `_
@@ -209,11 +209,11 @@ Bundles are registered in your ``app/AppKernel.php`` file (a rare PHP file in th
209
209
{
210
210
public function registerBundles()
211
211
{
212
- $bundles = array(
212
+ $bundles = [
213
213
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
214
214
new Symfony\Bundle\TwigBundle\TwigBundle(),
215
215
// ...
216
- ) ;
216
+ ] ;
217
217
// ...
218
218
219
219
return $bundles;
0 commit comments