-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmbed.php
More file actions
27 lines (23 loc) · 692 Bytes
/
Copy pathEmbed.php
File metadata and controls
27 lines (23 loc) · 692 Bytes
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
<?php
declare(strict_types=1);
/*
* This file is part of the QuidPHP package <https://quidphp.com>
* Author: Pierre-Philippe Emond <emondpph@gmail.com>
* License: https://github.com/quidphp/site/blob/master/LICENSE
*/
namespace Quid\Site\Col;
use Quid\Lemur;
use Quid\Site;
// embed
// class for a column containing an embed video (from youtube or vimeo)
class Embed extends Lemur\Col\VideoAlias
{
// config
protected static array $config = [
'preValidate'=>['uriHost'=>['youtube.com','www.youtube.com','vimeo.com']],
'services'=>[Site\Service\YouTube::class,Site\Service\Vimeo::class] // custom, classe du service utilisé
];
}
// init
Embed::__init();
?>