Skip to content

Commit 8c3e2f4

Browse files
authored
Merge pull request #163 from slashrsm/amcharts_support
Provide AmCharts support.
2 parents 06a0331 + 17882c0 commit 8c3e2f4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Providers/OEmbed/Amcharts.php

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Embed\Providers\OEmbed;
4+
5+
use Embed\Url;
6+
7+
class Amcharts extends OEmbedImplementation
8+
{
9+
/**
10+
* {@inheritdoc}
11+
*/
12+
public static function getEndPoint(Url $url)
13+
{
14+
return 'https://live.amcharts.com/oembed';
15+
}
16+
17+
/**
18+
* {@inheritdoc}
19+
*/
20+
public static function getPatterns()
21+
{
22+
return ['https?://live.amcharts.com/*'];
23+
}
24+
}

0 commit comments

Comments
 (0)