@@ -854,12 +854,12 @@ accomplished with the following route configuration:
854
854
.. code-block :: yaml
855
855
856
856
# app/config/routing.yml
857
- api_show_post :
857
+ api_post_show :
858
858
path : /api/posts/{id}
859
859
defaults : { _controller: AppBundle:BlogApi:show }
860
860
methods : [GET, HEAD]
861
861
862
- api_edit_post :
862
+ api_post_edit :
863
863
path : /api/posts/{id}
864
864
defaults : { _controller: AppBundle:BlogApi:edit }
865
865
methods : [PUT]
@@ -873,11 +873,11 @@ accomplished with the following route configuration:
873
873
xsi : schemaLocation =" http://symfony.com/schema/routing
874
874
http://symfony.com/schema/routing/routing-1.0.xsd" >
875
875
876
- <route id =" api_show_post " path =" /api/posts/{id}" methods =" GET|HEAD" >
876
+ <route id =" api_post_show " path =" /api/posts/{id}" methods =" GET|HEAD" >
877
877
<default key =" _controller" >AppBundle:BlogApi:show</default >
878
878
</route >
879
879
880
- <route id =" api_edit_post " path =" /api/posts/{id}" methods =" PUT" >
880
+ <route id =" api_post_edit " path =" /api/posts/{id}" methods =" PUT" >
881
881
<default key =" _controller" >AppBundle:BlogApi:edit</default >
882
882
</route >
883
883
</routes >
@@ -889,11 +889,11 @@ accomplished with the following route configuration:
889
889
use Symfony\Component\Routing\Route;
890
890
891
891
$collection = new RouteCollection();
892
- $collection->add('api_show_post ', new Route('/api/posts/{id}', array(
892
+ $collection->add('api_post_show ', new Route('/api/posts/{id}', array(
893
893
'_controller' => 'AppBundle:BlogApi:show',
894
894
), array(), array(), '', array(), array('GET', 'HEAD')));
895
895
896
- $collection->add('api_edit_post ', new Route('/api/posts/{id}', array(
896
+ $collection->add('api_post_edit ', new Route('/api/posts/{id}', array(
897
897
'_controller' => 'AppBundle:BlogApi:edit',
898
898
), array(), array(), '', array(), array('PUT')));
899
899
0 commit comments