embedpress
/
vendor
/
wpdevelopers
/
embera
/
src
/
Embera
/
ProviderCollection
/
CustomProviderCollection.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
CustomProviderCollection.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * CustomProviderCollection.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 | * Custom provider Collection, used for when you want to create a |
| 17 | * provider collection from scratch. You can instantiate this class |
| 18 | * and register providers manually, depending on your usage. |
| 19 | * |
| 20 | * For example: |
| 21 | * |
| 22 | * $provider = new CustomProviderCollection($config); |
| 23 | * $provider->registerProvider('Youtube'); |
| 24 | * $provider->registerProvider('Vimeo'); |
| 25 | * $provider->registerProvider('Instagram'); |
| 26 | * |
| 27 | */ |
| 28 | class CustomProviderCollection extends ProviderCollectionAdapter |
| 29 | { |
| 30 | /** inline {@inheritdoc} */ |
| 31 | public function __construct(array $config = []) |
| 32 | { |
| 33 | parent::__construct($config); |
| 34 | } |
| 35 | } |
| 36 |