From 15cb1f7b06b5bc6203d217760404120be4156305 Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Tue, 14 Jan 2020 19:55:45 +1000 Subject: [PATCH] Routing file extension changed to yaml (#387) * renamed routing file extension * Changed to yaml in tests --- src/Resources/config/{routing.yml => routing.yaml} | 0 tests/Functional/config/config.yml | 2 +- tests/Functional/config/routing.yml | 2 +- tests/Twig/Extension/FMElfinderExtensionTest.php | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/Resources/config/{routing.yml => routing.yaml} (100%) diff --git a/src/Resources/config/routing.yml b/src/Resources/config/routing.yaml similarity index 100% rename from src/Resources/config/routing.yml rename to src/Resources/config/routing.yaml diff --git a/tests/Functional/config/config.yml b/tests/Functional/config/config.yml index aaef99d..00041e7 100644 --- a/tests/Functional/config/config.yml +++ b/tests/Functional/config/config.yml @@ -1,7 +1,7 @@ framework: secret: "thisismysecret" router: - resource: "%kernel.root_dir%/config/routing.yml" + resource: "%kernel.root_dir%/config/routing.yaml" strict_requirements: ~ form: ~ csrf_protection: ~ diff --git a/tests/Functional/config/routing.yml b/tests/Functional/config/routing.yml index f6f1fda..496074b 100644 --- a/tests/Functional/config/routing.yml +++ b/tests/Functional/config/routing.yml @@ -1,4 +1,4 @@ # ElFinder file manager elfinder: - resource: "@FMElfinderBundle/Resources/config/routing.yml" + resource: "@FMElfinderBundle/Resources/config/routing.yaml" diff --git a/tests/Twig/Extension/FMElfinderExtensionTest.php b/tests/Twig/Extension/FMElfinderExtensionTest.php index b3453d3..c28cc40 100644 --- a/tests/Twig/Extension/FMElfinderExtensionTest.php +++ b/tests/Twig/Extension/FMElfinderExtensionTest.php @@ -37,7 +37,7 @@ protected function setUp(): void $this->twig->addExtension($this->extension); $loader = new YamlFileLoader(new FileLocator(__DIR__.'/../../../src/Resources/config')); $routes = new RouteCollection(); - $collection = $loader->load('routing.yml'); + $collection = $loader->load('routing.yaml'); $routes->addCollection($collection); $this->twig->addExtension(new RoutingExtension(new UrlGenerator($routes, new RequestContext()))); }