diff --git a/Resources/doc/1-setting_up_the_bundle.md b/Resources/doc/1-setting_up_the_bundle.md index 90ea9d832..5dc9dc18e 100644 --- a/Resources/doc/1-setting_up_the_bundle.md +++ b/Resources/doc/1-setting_up_the_bundle.md @@ -27,11 +27,9 @@ public function registerBundles() } ``` -### C) Enable Http Method Override +### C) Enable HTTP Method Override -[Enable HTTP Method override as described here](http://symfony.com/doc/master/cookbook/routing/method_parameters.html#faking-the-method-with-method) - -As of symfony 2.3, you just have to modify your config.yml : +[Enable HTTP Method override as described here](https://symfony.com/doc/current/reference/configuration/framework.html#http-method-override) ``` yaml # app/config/config.yml @@ -40,6 +38,18 @@ framework: http_method_override: true ``` +Or + + +``` php +// public/index.php + +$kernel = new CacheKernel($kernel); + +Request::enableHttpMethodParameterOverride(); // <-- add this line +$request = Request::createFromGlobals(); +``` + ### D) Enable translations If you wish to use default texts provided in this bundle, you have to make