@@ 9-15 (lines=7) @@ | ||
6 | ||
7 | abstract class AbstractConfigurationFile extends AbstractAdapter |
|
8 | { |
|
9 | protected function configureSchema(\DOMElement $element) |
|
10 | { |
|
11 | $schema = realpath(__DIR__ . '/../../../assets/configuration.xsd'); |
|
12 | $element->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.magiumlib.com/Configuration'); |
|
13 | $element->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', 'http://www.magiumlib.com/Configuration ' . $schema); |
|
14 | return $schema; |
|
15 | } |
|
16 | } |
|
17 |
@@ 10-16 (lines=7) @@ | ||
7 | ||
8 | abstract class AbstractContextConfigurationFile extends AbstractAdapter |
|
9 | { |
|
10 | protected function configureSchema(\DOMElement $element) |
|
11 | { |
|
12 | $schema = realpath(__DIR__ . '/../../../assets/context.xsd'); |
|
13 | $element->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.magiumlib.com/ConfigurationContext'); |
|
14 | $element->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', 'http://www.magiumlib.com/ConfigurationContext ' . $schema); |
|
15 | return $schema; |
|
16 | } |
|
17 | ||
18 | public function getContexts() |
|
19 | { |