Skip to content

Commit addc686

Browse files
committed
add trigger on runtime
1 parent 09720ca commit addc686

File tree

9 files changed

+21
-11
lines changed

9 files changed

+21
-11
lines changed

src/Symfony/Bundle/WebServerBundle/Command/ServerLogCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* @author Grégoire Pineau <lyrixx@lyrixx.info>
2727
*
28-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
28+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
2929
*/
3030
class ServerLogCommand extends Command
3131
{
@@ -79,6 +79,8 @@ protected function configure()
7979

8080
protected function execute(InputInterface $input, OutputInterface $output)
8181
{
82+
@trigger_error('Using the WebserverBundle is deprecated since 4.4, the new symfony local server has more feature, you should use it instead.', E_USER_DEPRECATED);
83+
8284
$filter = $input->getOption('filter');
8385
if ($filter) {
8486
if (!class_exists(ExpressionLanguage::class)) {

src/Symfony/Bundle/WebServerBundle/Command/ServerRunCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Michał Pipa <michal.pipa.xsolve@gmail.com>
2929
*
30-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
30+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
3131
*/
3232
class ServerRunCommand extends Command
3333
{
@@ -90,6 +90,8 @@ protected function configure()
9090
*/
9191
protected function execute(InputInterface $input, OutputInterface $output)
9292
{
93+
@trigger_error('Using the WebserverBundle is deprecated since 4.4, the new symfony local server has more feature, you should use it instead.', E_USER_DEPRECATED);
94+
9395
$io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output);
9496

9597
if (null === $documentRoot = $input->getOption('docroot')) {

src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
2929
*
30-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
30+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
3131
*/
3232
class ServerStartCommand extends Command
3333
{
@@ -90,6 +90,8 @@ protected function configure()
9090
*/
9191
protected function execute(InputInterface $input, OutputInterface $output)
9292
{
93+
@trigger_error('Using the WebserverBundle is deprecated since 4.4, the new symfony local server has more feature, you should use it instead.', E_USER_DEPRECATED);
94+
9395
$io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output);
9496

9597
if (!\extension_loaded('pcntl')) {

src/Symfony/Bundle/WebServerBundle/Command/ServerStatusCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
2828
*
29-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
29+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
3030
*/
3131
class ServerStatusCommand extends Command
3232
{
@@ -65,6 +65,8 @@ protected function configure()
6565
*/
6666
protected function execute(InputInterface $input, OutputInterface $output)
6767
{
68+
@trigger_error('Using the WebserverBundle is deprecated since 4.4, the new symfony local server has more feature, you should use it instead.', E_USER_DEPRECATED);
69+
6870
$io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output);
6971
$server = new WebServer();
7072
if ($filter = $input->getOption('filter')) {

src/Symfony/Bundle/WebServerBundle/Command/ServerStopCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
2626
*
27-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
27+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
2828
*/
2929
class ServerStopCommand extends Command
3030
{
@@ -54,6 +54,8 @@ protected function configure()
5454
*/
5555
protected function execute(InputInterface $input, OutputInterface $output)
5656
{
57+
@trigger_error('Using the WebserverBundle is deprecated since 4.4, the new symfony local server has more feature, you should use it instead.', E_USER_DEPRECATED);
58+
5759
$io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output);
5860

5961
try {

src/Symfony/Bundle/WebServerBundle/DependencyInjection/WebServerExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* @author Robin Chalas <robin.chalas@gmail.com>
2222
*
23-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
23+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
2424
*/
2525
class WebServerExtension extends Extension
2626
{
@@ -37,7 +37,7 @@ public function load(array $configs, ContainerBuilder $container)
3737
$container->removeDefinition('web_server.command.server_log');
3838
}
3939

40-
@trigger_error('Using the WebserverBundle is deprecated since 4.3, use the symfony local server instead.');
40+
@trigger_error('Using the WebserverBundle is deprecated since 4.3, the new symfony local server has more feature, you should use it instead.');
4141
}
4242

4343
private function getPublicDirectory(ContainerBuilder $container)

src/Symfony/Bundle/WebServerBundle/WebServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
2222
*
23-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
23+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
2424
*/
2525
class WebServer
2626
{

src/Symfony/Bundle/WebServerBundle/WebServerBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
use Symfony\Component\HttpKernel\Bundle\Bundle;
1515

1616
/**
17-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
17+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
1818
*/
1919
class WebServerBundle extends Bundle
2020
{
2121
public function boot()
2222
{
23-
@trigger_error('Using the WebserverBundle is deprecated since 4.3, use the symfony local server instead.');
23+
@trigger_error('Using the WebserverBundle is deprecated since 4.4, the new symfony local server has more feature, you should use it instead.', E_USER_DEPRECATED);
2424
}
2525
}

src/Symfony/Bundle/WebServerBundle/WebServerConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Fabien Potencier <fabien@symfony.com>
1616
*
17-
* @deprecated since version 4.3, to be removed in 5.0; use the Symfony local server instead.
17+
* @deprecated since version 4.4, to be removed in 5.0; the new symfony local server has more feature, you should use it instead.
1818
*/
1919
class WebServerConfig
2020
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy