File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ that renders a template when there is no specific logic. To keep the same
38
38
template as before, request attributes are extracted before the template is
39
39
rendered::
40
40
41
- function render_template($request)
42
- {
41
+ function render_template($request) {
43
42
extract($request->attributes->all(), EXTR_SKIP);
44
43
ob_start();
45
44
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
@@ -106,8 +105,7 @@ Here is the updated and improved version of our framework::
106
105
use Symfony\Component\HttpFoundation\Response;
107
106
use Symfony\Component\Routing;
108
107
109
- function render_template($request)
110
- {
108
+ function render_template($request) {
111
109
extract($request->attributes->all(), EXTR_SKIP);
112
110
ob_start();
113
111
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
You can’t perform that action at this time.
0 commit comments