embedpress
/
vendor
/
wpdevelopers
/
embera
/
src
/
Embera
/
ProviderCollection
/
SlimProviderCollection.php
CustomProviderCollection.php
5 years ago
DefaultProviderCollection.php
5 years ago
ProviderCollectionAdapter.php
5 years ago
ProviderCollectionInterface.php
5 years ago
SlimProviderCollection.php
5 years ago
SlimProviderCollection.php
56 lines
| 1 | <?php |
| 2 | /** |
| 3 | * SlimProviderCollection.php |
| 4 | * |
| 5 | * @package Embera |
| 6 | * @author Michael Pratt <yo@michael-pratt.com> |
| 7 | * @link http://www.michael-pratt.com/ |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | |
| 13 | namespace Embera\ProviderCollection; |
| 14 | |
| 15 | /** |
| 16 | * A slim provider collection with popular oembed providers/sites. |
| 17 | * There is no criteria for choosing this providers other than my perception of |
| 18 | * popularity. if you want me to add a "popular" site to this collection |
| 19 | * please let me know. |
| 20 | */ |
| 21 | class SlimProviderCollection extends ProviderCollectionAdapter |
| 22 | { |
| 23 | /** inline {@inheritdoc} */ |
| 24 | public function __construct(array $config = []) |
| 25 | { |
| 26 | parent::__construct($config); |
| 27 | $this->registerProvider([ |
| 28 | 'CodePen', |
| 29 | 'DailyMotion', |
| 30 | 'Deviantart', |
| 31 | 'Facebook', |
| 32 | 'Flickr', |
| 33 | 'GettyImages', |
| 34 | 'Gfycat', |
| 35 | 'Giphy', |
| 36 | 'Instagram', |
| 37 | 'Kickstarter', |
| 38 | 'Livestream', |
| 39 | 'Meetup', |
| 40 | 'Reddit', |
| 41 | 'Scribd', |
| 42 | 'Sketchfab', |
| 43 | 'Slideshare', |
| 44 | 'SoundCloud', |
| 45 | 'SpeakerDeck', |
| 46 | 'Spotify', |
| 47 | 'Ted', |
| 48 | 'Tumblr', |
| 49 | 'Twitter', |
| 50 | 'Vimeo', |
| 51 | 'Wordpress', |
| 52 | 'Youtube', |
| 53 | ]); |
| 54 | } |
| 55 | } |
| 56 |