Skip to content

Commit 972c4ca

Browse files
committed
disable server commands without Process component
1 parent dd82b64 commit 972c4ca

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ServerCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ public function isEnabled()
2727
return false;
2828
}
2929

30+
if (!class_exists('Symfony\Component\Process\Process')) {
31+
return false;
32+
}
33+
3034
return parent::isEnabled();
3135
}
3236

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@
2525
*/
2626
class ServerRunCommand extends ServerCommand
2727
{
28-
/**
29-
* {@inheritdoc}
30-
*/
31-
public function isEnabled()
32-
{
33-
if (PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) {
34-
return false;
35-
}
36-
37-
return parent::isEnabled();
38-
}
39-
4028
/**
4129
* {@inheritdoc}
4230
*/

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