Skip to content

Commit bbd4e7d

Browse files
committed
Added Ted oEmbed provider. close #26
1 parent 7f6469c commit bbd4e7d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Embed/Providers/OEmbed/Ted.php

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
namespace Embed\Providers\OEmbed;
3+
4+
class Ted extends \Embed\Providers\OEmbedImplementationAbstract
5+
{
6+
/**
7+
* {@inheritDoc}
8+
*/
9+
public static function getEndPoint()
10+
{
11+
return 'http://www.ted.com/talks/oembed.xml';
12+
}
13+
14+
15+
/**
16+
* {@inheritDoc}
17+
*/
18+
public static function getPatterns()
19+
{
20+
return array('http://www.ted.com/talks/*');
21+
}
22+
}

0 commit comments

Comments
 (0)