Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01c4720

Browse files
author
Robin Chalas
committed
[FrameworkBundle] Deprecate the "--env" and "--no-debug" options
1 parentd1fd432 commit01c4720

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

‎UPGRADE-4.2.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ FrameworkBundle
110110
```
111111
* The`ContainerAwareCommand` class has been deprecated, use `Symfony\Component\Console\Command\Command`
112112
with dependency injection instead.
113+
* The `--env` console option and its "-e" shortcut have been deprecated,
114+
set the "APP_ENV" environment variable instead.
115+
* The `--env` console option and its "-e" shortcut have been deprecated,
116+
set the "APP_DEBUG" environment variable to "0" instead.
113117

114118
Messenger
115119
---------

‎UPGRADE-5.0.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ FrameworkBundle
116116
* Added support for the SameSite attribute for session cookies. It is highly recommended to set this setting (`framework.session.cookie_samesite`) to `lax` for increased security against CSRF attacks.
117117
* The `ContainerAwareCommand` class has been removed, use `Symfony\Component\Console\Command\Command`
118118
with dependency injection instead.
119+
* The `--env` console option and its "-e" shortcut have been deprecated,
120+
set the "APP_ENV" environment variable instead.
121+
* The `--env` console option and its "-e" shortcut have been deprecated,
122+
set the "APP_DEBUG" environment variable to "0" instead.
119123

120124
HttpFoundation
121125
--------------

‎src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CHANGELOG
1414
* Removed the`framework.messenger.encoder` and`framework.messenger.decoder` options. Use the`framework.messenger.serializer.id` option to replace the Messenger serializer.
1515
* Deprecated the`ContainerAwareCommand` class in favor of`Symfony\Component\Console\Command\Command`
1616
* Made`debug:container` and`debug:autowiring` ignore backslashes in service ids
17+
* Deprecated the "--env|-e" and "--no-debug" console options
1718

1819
4.1.0
1920
-----

‎src/Symfony/Bundle/FrameworkBundle/Console/Application.php‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ public function getKernel()
6262
*/
6363
publicfunctiondoRun(InputInterface$input,OutputInterface$output)
6464
{
65+
if ($input->hasParameterOption(array('-e','--env'),true)) {
66+
@trigger_error('The "--env" option and its "-e" shortcut are deprecated since Symfony 4.2. Set the "APP_ENV" environment variable instead.',E_USER_DEPRECATED);
67+
}
68+
69+
if ($input->hasParameterOption('--no-debug',true)) {
70+
@trigger_error('The "--no-debug" option is deprecated since Symfony 4.2. Set the "APP_DEBUG" environment variable to "0" instead.',E_USER_DEPRECATED);
71+
}
72+
6573
$this->kernel->boot();
6674

6775
$this->setDispatcher($this->kernel->getContainer()->get('event_dispatcher'));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp