Replace double colons with valid PHP syntax

parent c2fc6583
......@@ -135,19 +135,19 @@ Traits
.. code-block:: php
return $app->render('index.html', ['name': 'Fabien']);
return $app->render('index.html', ['name' => 'Fabien']);
$response = new Response();
$response->setTtl(10);
return $app->render('index.html', ['name': 'Fabien'], $response);
return $app->render('index.html', ['name' => 'Fabien'], $response);
.. code-block:: php
// stream a view
use Symfony\Component\HttpFoundation\StreamedResponse;
return $app->render('index.html', ['name': 'Fabien'], new StreamedResponse());
return $app->render('index.html', ['name' => 'Fabien'], new StreamedResponse());
Customization
-------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment