Skip to content

Commit

Permalink
feat: move templates to default symfony folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Apr 12, 2024
1 parent c30473a commit acc1b52
Show file tree
Hide file tree
Showing 6 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 @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit acc1b52

Please sign in to comment.