-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfiguration.php
More file actions
40 lines (35 loc) · 1.26 KB
/
Configuration.php
File metadata and controls
40 lines (35 loc) · 1.26 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types=1);
namespace Speicher210\CloudinaryBundle\DependencyInjection;
use Override;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class Configuration implements ConfigurationInterface
{
#[Override]
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('speicher210_cloudinary');
$treeBuilder->getRootNode()
->children()
->scalarNode('url')
->info('Any parameter value parsed from this string will override explicitly set parameters.')
->end()
->scalarNode('cloud_name')
->cannotBeEmpty()
->end()
->arrayNode('access_identifier')
->children()
->scalarNode('api_key')
->cannotBeEmpty()
->end()
->scalarNode('api_secret')
->cannotBeEmpty()
->end()
->end()
->end()
->booleanNode('secure')->defaultTrue()->end()
->end();
return $treeBuilder;
}
}