Skip to content

Instantly share code, notes, and snippets.

@tatma
Last active August 13, 2018 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatma/8a252cbb9654976f0cbc0cbd629e1ca5 to your computer and use it in GitHub Desktop.
Save tatma/8a252cbb9654976f0cbc0cbd629e1ca5 to your computer and use it in GitHub Desktop.
dump degli oggetti Request e Response
<?php
// /src/Controller/DefaultController.php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class DefaultController extends Controller
{
/**
* @Route("/", name="home")
*/
public function homepage(Request $request)
{
dump($request);
$response = new Response('Zombie World');
dump($response);
return $response;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment