I am trying to use the Request
& Response
components of Symfony2 without the full framework. Here is my code:
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$r = Request::create( 'https://example.com', 'GET' );
$response = $r->getResponse();
$content = $response->getContent();
And I get this error :
PHP Fatal error: Class 'Symfony\Component\HttpFoundation\Request' not found in /root/billing/web/index.php on line 6