Skip to content

Commit

Permalink
Update 1-setting_up_the_bundle.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XWB authored Jan 8, 2020
1 parent a70e896 commit b1bd069
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Resources/doc/1-setting_up_the_bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b1bd069

Please sign in to comment.