Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit ec670cb

Browse files
committed
Merge branch '2.3'
* 2.3: Use kernel.http_method_override parameter udpated the CHANGELOG for 2.3 Added 2.3 upgrade notes containing app_dev.php changes regarding debug component. updated VENDORS for 2.3.0 Fixed accidentally removed status code in app/check.php Conflicts: composer.json
2 parents 725df8d + 2045119 commit ec670cb

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

UPGRADE-2.3.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
UPGRADE FROM 2.2 to 2.3
2+
=======================
3+
4+
When upgrading Symfony from 2.2 to 2.3, you need to do the following changes
5+
to the code that came from the Standard Edition:
6+
7+
* The debugging tools are not enabled by default anymore and should be added
8+
to the
9+
[`web/app_dev.php`](https://github.com/symfony/symfony-standard/blob/2.3/web/app_dev.php)
10+
front controller manually, just after including the bootstrap cache:
11+
12+
use Symfony\Component\Debug\Debug;
13+
14+
Debug::enable();
15+
16+
You also need to enable debugging in the
17+
[`app/console`](https://github.com/symfony/symfony-standard/blob/2.3/app/console)
18+
script, after the `$debug` variable is defined:
19+
20+
use Symfony\Component\Debug\Debug;
21+
22+
if ($debug) {
23+
Debug::enable();
24+
}
25+
26+
* The `parameters.yml` file can now be managed by the
27+
`incenteev/composer-parameter-handler` bundle that comes with the 2.3
28+
Standard Edition:
29+
30+
* add `"incenteev/composer-parameter-handler": "~2.0"` to your
31+
`composer.json` file;
32+
33+
* add `/app/config/parameters.yml` to your `.gitignore` file;
34+
35+
* create a
36+
[`app/config/parameters.yml.dist`](https://github.com/symfony/symfony-standard/blob/2.3/app/config/parameters.yml.dist)
37+
file with sensible values for all your parameters.
38+
39+
* It is highly recommended that you switch the minimum stability to `stable`
40+
in your `composer.json` file.
41+
42+
* If you are using Apache, have a look at the new
43+
[`.htaccess`](https://github.com/symfony/symfony-standard/blob/2.3/web/.htaccess)
44+
configuration and change yours accordingly.
45+
46+
* In the
47+
[`app/autoload.php`](https://github.com/symfony/symfony-standard/blob/2.3/app/autoload.php)
48+
file, the section about `intl` should be removed as it is not needed anymore.
49+
50+
You can also have a look at the
51+
[diff](https://github.com/symfony/symfony-standard/compare/v2.2.0%E2%80%A62.3)
52+
between the 2.2 version of the Standard Edition and the 2.3 version.

app/config/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ framework:
1919
trusted_proxies: ~
2020
session: ~
2121
fragments: ~
22+
http_method_override: true
2223

2324
# Twig Configuration
2425
twig:

web/app.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
$kernel = new AppKernel('prod', false);
2020
$kernel->loadClassCache();
2121
//$kernel = new AppCache($kernel);
22-
Request::enableHttpMethodParameterOverride();
2322
$request = Request::createFromGlobals();
2423
$response = $kernel->handle($request);
2524
$response->send();

web/app_dev.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
$kernel = new AppKernel('dev', true);
2626
$kernel->loadClassCache();
27-
Request::enableHttpMethodParameterOverride();
2827
$request = Request::createFromGlobals();
2928
$response = $kernel->handle($request);
3029
$response->send();

0 commit comments

Comments
 (0)