Skip to content

Commit 1c96c02

Browse files
authored
Merge pull request #457 from FriendsOfSymfony/sf-41-route-config
use explicit controller instead of route default
2 parents 8d3951f + aa82df1 commit 1c96c02

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
tag_list:
22
path: /tag/list
3-
defaults: { _controller: tag_controller::listAction }
43
methods: [GET]
4+
controller: tag_controller::listAction
55

66
tag_error:
77
path: /tag/error
8-
defaults: { _controller: tag_controller::errorAction }
8+
controller: tag_controller::errorAction
99

1010
tag_one:
1111
path: /tag/{id}
12-
defaults: { _controller: tag_controller::itemAction }
1312
methods: [GET,POST]
13+
controller: tag_controller::itemAction
1414

1515
tag_manual:
1616
path: /tag_manual
17-
defaults: { _controller: tag_controller::manualAction }
17+
controller: tag_controller::manualAction
1818

1919
tag_twig:
2020
path: /tag_twig
21-
defaults: { _controller: tag_controller::twigAction }
21+
controller: tag_controller::twigAction
2222

2323
invalidation_route:
2424
path: /invalidate/route/{id}
25-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\InvalidationController::itemAction }
25+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\InvalidationController::itemAction
2626

2727
invalidation_path:
2828
path: /invalidate/path/{statusCode}
29-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\InvalidationController::otherAction }
29+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\InvalidationController::otherAction
3030

3131
invalidation_error:
3232
path: /invalidate/error
33-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\InvalidationController::errorAction }
33+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\InvalidationController::errorAction
3434

3535
test_cached:
3636
path: /cached/{id}
37-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\TestController::contentAction }
3837
methods: [GET,PUT]
38+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\TestController::contentAction
3939

4040
test_cached_session:
4141
path: /secured_area/cached_session
42-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\TestController::sessionAction }
42+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\TestController::sessionAction
4343

4444
test_noncached:
4545
path: /noncached
46-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\TestController::contentAction }
46+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\TestController::contentAction
4747

4848
test_logout:
4949
path: /secured_area/logout
5050

5151
test_flash:
5252
path: /flash
53-
defaults: { _controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\FlashMessageController::flashAction }
53+
controller: FOS\HttpCacheBundle\Tests\Functional\Fixtures\Controller\FlashMessageController::flashAction
5454

5555
user_context_hash:
5656
path: /secured_area/_fos_user_context_hash

0 commit comments

Comments
 (0)