Skip to content

Commit 84f571b

Browse files
committed
Configure internal routes
1 parent 9a07129 commit 84f571b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<routes xmlns="http://symfony.com/schema/routing"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd">
6+
7+
<route id="quarantine.home" path="/">
8+
<default key="_controller">quarantine.controller.gui::homeAction</default>
9+
</route>
10+
11+
</routes>

tests/Fixture/config/routes.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ root:
1313
path: /
1414
controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController
1515
defaults:
16-
route: home
16+
route: home
17+
18+
quarantine:
19+
resource: '@AntiSpamQuarantineBundle/resources/config/routing/quarantine.xml'
20+
name_prefix: antispam.
21+
prefix: /quarantine

0 commit comments

Comments
 (0)