| @@ 14-21 (lines=8) @@ | ||
| 11 | /** |
|
| 12 | * {@inheritdoc} |
|
| 13 | */ |
|
| 14 | 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} |
|
| @@ 14-26 (lines=13) @@ | ||
| 11 | /** |
|
| 12 | * {@inheritdoc} |
|
| 13 | */ |
|
| 14 | public function __construct(array $configuration, LoggerInterface $logger = null) |
|
| 15 | { |
|
| 16 | $configuration = array_merge($configuration, [ |
|
| 17 | 'access_type' => 'offline', |
|
| 18 | 'scopes' => [ |
|
| 19 | 'https://www.googleapis.com/auth/youtube', |
|
| 20 | 'https://www.googleapis.com/auth/youtube.readonly', |
|
| 21 | 'https://www.googleapis.com/auth/youtube.upload', |
|
| 22 | ], |
|
| 23 | ]); |
|
| 24 | ||
| 25 | parent::__construct($configuration, $logger); |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * {@inheritdoc} |
|