Soshot/vendor/embed/embed/src/Providers/OEmbed/Infogram.php

28 lines
578 B
PHP

<?php
namespace Embed\Providers\OEmbed;
use Embed\Http\Url;
class Infogram extends EndPoint implements EndPointInterface
{
protected static $pattern = [
'infogr.am/*',
'www.infogr.am/*',
];
protected static $endPoint = 'https://infogr.am/oembed';
/**
* {@inheritdoc}
*/
public function getEndPoint()
{
$url = $this->response->getUrl()->withScheme('https');
return Url::create(static::$endPoint)
->withQueryParameters([
'url' => (string) $url,
]);
}
}