Skip to content

Commit

Permalink
feat: use default symfony folder structure (#473)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <[email protected]>
  • Loading branch information
Chris53897 and Chris8934 authored Apr 13, 2024
1 parent 5bb99db commit 13426db
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/DependencyInjection/KnpMenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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();
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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());
Expand Down

0 comments on commit 13426db

Please sign in to comment.