Skip to content

Commit

Permalink
Merge pull request #4 from techdivision/bugfix/neos-5.x
Browse files Browse the repository at this point in the history
Neos 5.x - SocialCardHelper refactored
  • Loading branch information
regniets authored May 11, 2020
2 parents 3997cfb + c2d36b4 commit 8590e33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Classes/Eel/SocialCardHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use Neos\Eel\ProtectedContextAwareInterface;
use Neos\Flow\Http\Client\Browser;
use Neos\Flow\Http\Client\CurlEngine;
use Neos\Flow\Http\Request;
use Neos\Flow\Http\Uri;
use Symfony\Component\DomCrawler\Crawler;


Expand Down Expand Up @@ -59,9 +57,7 @@ public function getCrawler(string $externalUri = null): ?Crawler
throw new WrongUriException($externalUri . ' is not a valid URI');
}

$uri = new Uri($externalUri);
$request = Request::create($uri, "GET");
$this->browser->sendRequest($request);
$this->browser->request($externalUri);
return $this->browser->getCrawler();
}

Expand Down

0 comments on commit 8590e33

Please sign in to comment.