diff --git a/src/Resources/config/menu.xml b/config/menu.xml similarity index 100% rename from src/Resources/config/menu.xml rename to config/menu.xml diff --git a/src/Resources/config/schema/menu-1.0.xsd b/config/schema/menu-1.0.xsd similarity index 100% rename from src/Resources/config/schema/menu-1.0.xsd rename to config/schema/menu-1.0.xsd diff --git a/src/Resources/config/templating.xml b/config/templating.xml similarity index 100% rename from src/Resources/config/templating.xml rename to config/templating.xml diff --git a/src/Resources/config/twig.xml b/config/twig.xml similarity index 100% rename from src/Resources/config/twig.xml rename to config/twig.xml diff --git a/src/DependencyInjection/KnpMenuExtension.php b/src/DependencyInjection/KnpMenuExtension.php index 867b1df2..dc77b2a1 100644 --- a/src/DependencyInjection/KnpMenuExtension.php +++ b/src/DependencyInjection/KnpMenuExtension.php @@ -19,7 +19,7 @@ class KnpMenuExtension extends Extension implements PrependExtensionInterface */ public function load(array $configs, ContainerBuilder $container): void { - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../../config')); $loader->load('menu.xml'); $configuration = new Configuration(); diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index da91d8ca..68a19fb1 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -16,7 +16,7 @@ public function testConfigurationMatchesXsd($config): void $previousErrorSetting = \libxml_use_internal_errors(true); - $configIsValid = $configDom->schemaValidate(__DIR__.'/../../src/Resources/config/schema/menu-1.0.xsd'); + $configIsValid = $configDom->schemaValidate(__DIR__.'/../../config/schema/menu-1.0.xsd'); $errors = \array_map(function ($error) { return \sprintf('Line %d: %s', $error->line, \trim($error->message)); }, \libxml_get_errors());