|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Libcast\AssetDistributor\Vimeo; |
|
4
|
|
|
|
|
5
|
|
|
use Libcast\AssetDistributor\Configuration\AbstractConfiguration; |
|
6
|
|
|
use Libcast\AssetDistributor\Configuration\Configuration; |
|
7
|
|
|
use Psr\Log\LoggerInterface; |
|
8
|
|
|
|
|
9
|
|
|
class VimeoConfiguration extends AbstractConfiguration implements Configuration |
|
10
|
|
|
{ |
|
11
|
|
|
/** |
|
12
|
|
|
* {@inheritdoc} |
|
13
|
|
|
*/ |
|
14
|
|
View Code Duplication |
public function __construct(array $configuration, LoggerInterface $logger = null) |
|
15
|
|
|
{ |
|
16
|
|
|
$configuration = array_merge($configuration, [ |
|
17
|
|
|
'scopes' => ['public', 'private', 'upload', 'create', 'edit', 'delete'], |
|
18
|
|
|
]); |
|
19
|
|
|
|
|
20
|
|
|
parent::__construct($configuration, $logger); |
|
21
|
|
|
} |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* {@inheritdoc} |
|
25
|
|
|
*/ |
|
26
|
|
|
public function getCategoryMap() |
|
27
|
|
|
{ |
|
28
|
|
|
return [ |
|
29
|
|
|
'animation' => '/categories/animation', |
|
30
|
|
|
'art' => '/categories/art', |
|
31
|
|
|
'design' => '/categories/art', |
|
32
|
|
|
'camera' => '/categories/cameratechniques', |
|
33
|
|
|
'photo' => '/categories/cameratechniques', |
|
34
|
|
|
'comedy' => '/categories/comedy', |
|
35
|
|
|
'documentary' => '/categories/documentary', |
|
36
|
|
|
'experimental' => '/categories/experimental', |
|
37
|
|
|
'fashion' => '/categories/fashion', |
|
38
|
|
|
'food' => '/categories/food', |
|
39
|
|
|
'instructionals' => '/categories/instructionals', |
|
40
|
|
|
'music' => '/categories/music', |
|
41
|
|
|
'narrative' => '/categories/narrative', |
|
42
|
|
|
'personal' => '/categories/personal', |
|
43
|
|
|
'journalism' => '/categories/journalism', |
|
44
|
|
|
'sports' => '/categories/sports', |
|
45
|
|
|
'talks' => '/categories/talks', |
|
46
|
|
|
'travel' => '/categories/travel', |
|
47
|
|
|
]; |
|
48
|
|
|
} |
|
49
|
|
|
} |
|
50
|
|
|
|