@@ -18,20 +18,20 @@ inside your routing configuration:
18
18
19
19
.. code-block :: php-annotations
20
20
21
- // src/AppBundle/ Controller/MainController.php
22
- namespace AppBundle \Controller;
21
+ // src/Controller/MainController.php
22
+ namespace App \Controller;
23
23
24
- use Symfony\Bundle\FrameworkBundle\Controller\Controller ;
24
+ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController ;
25
25
use Symfony\Component\Routing\Annotation\Route;
26
26
27
- class MainController extends Controller
27
+ class MainController extends AbstractController
28
28
{
29
29
/**
30
30
* @Route("/{_locale}/contact", name="contact", requirements={
31
31
* "_locale"="%app.locales%"
32
32
* })
33
33
*/
34
- public function contactAction ()
34
+ public function contact ()
35
35
{
36
36
// ...
37
37
}
@@ -113,18 +113,18 @@ path):
113
113
114
114
.. code-block :: php-annotations
115
115
116
- // src/AppBundle/ Controller/MainController.php
117
- namespace AppBundle \Controller;
116
+ // src/Controller/MainController.php
117
+ namespace App \Controller;
118
118
119
- use Symfony\Bundle\FrameworkBundle\Controller\Controller ;
119
+ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController ;
120
120
use Symfony\Component\Routing\Annotation\Route;
121
121
122
- class MainController extends Controller
122
+ class MainController extends AbstractController
123
123
{
124
124
/**
125
125
* @Route("/%app.route_prefix%/contact", name="contact")
126
126
*/
127
- public function contactAction ()
127
+ public function contact ()
128
128
{
129
129
// ...
130
130
}
0 commit comments