@@ -3,11 +3,11 @@ |
||
3 | 3 | use Symfony\Component\HttpClient\NativeHttpClient; |
4 | 4 | use Symfony\Component\HttpClient\Psr18Client; |
5 | 5 | |
6 | -require __DIR__ . "/../vendor/autoload.php"; |
|
6 | +require __DIR__."/../vendor/autoload.php"; |
|
7 | 7 | |
8 | 8 | // Initialize new Psr\HttpClient implementation. This example uses Symfony's implementation from the symfony/http-client |
9 | 9 | // package but you can use any implementation provided by your framework of choice. |
10 | -$client = new Psr18Client(new NativeHttpClient([ "headers" => [ "User-Agent" => "facebookexternalhit/1.1" ] ])); |
|
10 | +$client = new Psr18Client(new NativeHttpClient(["headers" => ["User-Agent" => "facebookexternalhit/1.1"]])); |
|
11 | 11 | |
12 | 12 | // Create a new crawler |
13 | 13 | $crawler = new Fusonic\OpenGraph\Consumer($client, $client); |