Skip to content

Commit

Permalink
[#81] Removing return type: this is unrelated to the PR
Browse files Browse the repository at this point in the history
... and so should be done in a separate PR if we want it
  • Loading branch information
weaverryan committed Dec 4, 2017
1 parent 0da8244 commit d9688d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/skeleton/controller/Controller.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class <?= $controller_class_name ?> extends Controller
/**
* @Route("<?= $route_path ?>", name="<?= $route_name ?>")
*/
public function index(): Response
public function index()
{
return new Response('Welcome to your new controller!');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class <?= $controller_class_name ?> extends Controller
/**
* @Route("<?= $route_path ?>", name="<?= $route_name ?>")
*/
public function index(): Response
public function index()
{
// replace this line with your own code!
return $this->render('@Maker/demoPage.html.twig', [ 'path' => str_replace($this->getParameter('kernel.project_dir').'/', '', __FILE__) ]);
Expand Down

0 comments on commit d9688d4

Please sign in to comment.