forked from pingpong-labs/oembed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Embed.php
38 lines (33 loc) · 962 Bytes
/
Embed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php namespace Pingpong\Oembed;
use Embed\Embed as BaseEmbed;
/**
* Class Embed
*
* @package Pingpong\Oembed
* @author Pingpong Labs <[email protected]>
* @author Gravitano <[email protected]>
* @license https://github.com/pingpong-labs/oembed/blob/master/LICENSE MIT
*/
class Embed extends BaseEmbed {
/**
* Get info from a specify url.
*
* @param string|Request $url The url or a request with the url
* @param array $options
* @return \Embed\Adapters\AdapterInterface|false
*/
public function get($url, array $options = null)
{
return static::create($url, $options);
}
/**
* Gets the info from a source (list of urls)
*
* @param string|Request $url The url or a request with the source url
* @return \Embed\Sources\SourceInterface|false
*/
public function source($url)
{
return static::createSource($url);
}
}