| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class JsonRpcParamsSfConstraintsDocExtension implements ExtensionInterface |
||
| 13 | { |
||
| 14 | // Extension identifier (used in configuration for instance) |
||
| 15 | const EXTENSION_IDENTIFIER = 'json_rpc_params_sf_constraints_doc'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | 2 | public function load(array $configs, ContainerBuilder $container) |
|
| 21 | { |
||
| 22 | 2 | $loader = new YamlFileLoader( |
|
| 23 | 2 | $container, |
|
| 24 | 2 | new FileLocator(__DIR__.'/../Resources/config') |
|
| 25 | 2 | ); |
|
| 26 | 2 | $loader->load('services.sdk.app.yaml'); |
|
| 27 | 2 | $loader->load('services.sdk.infra.yaml'); |
|
| 28 | 2 | $loader->load('services.public.yaml'); |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 3 | public function getNamespace() |
|
| 35 | { |
||
| 36 | 3 | return 'http://example.org/schema/dic/'.$this->getAlias(); |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 1 | public function getXsdValidationBasePath() |
|
| 43 | { |
||
| 44 | 1 | return ''; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | 3 | public function getAlias() |
|
| 53 | } |
||
| 54 | } |
||
| 55 |