Файл: sngine-v2.8/Script/includes/libs/Embed/Providers/OEmbed/Jsbin.php
Строк: 26
<?php
namespace EmbedProvidersOEmbed;
use EmbedHttpUrl;
class Jsbin extends EndPoint implements EndPointInterface
{
protected static $pattern = 'output.jsbin.com/*';
protected static $endPoint = 'http://jsbin.com/oembed';
/**
* {@inheritdoc}
*/
public function getEndPoint()
{
$url = $this->getUrl()->withDirectoryPosition(2, 'embed');
return Url::create(static::$endPoint)
->withQueryParameters([
'url' => (string) $url,
'format' => 'json',
]);
}
}