File tree 3 files changed +9
-18
lines changed
src/Symfony/Bundle/WebServerBundle
3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -44,22 +44,18 @@ protected function configure()
44
44
45
45
<info>%command.full_name%</info>
46
46
47
- To change default bind address and port use the <info>address</info> argument:
47
+ Change the default address and port by passing them as an argument:
48
48
49
49
<info>%command.full_name% 127.0.0.1:8080</info>
8000
50
50
51
- To change default docroot directory use the <info>--docroot</info> option:
51
+ Use the <info>--docroot</info> option to change the default docroot directory :
52
52
53
53
<info>%command.full_name% --docroot=htdocs/</info>
54
54
55
- If you have custom docroot directory layout, you can specify your own
56
- router script using <info>--router</info> option:
55
+ Specify your own router script via the <info>--router</info> option:
57
56
58
57
<info>%command.full_name% --router=app/config/router.php</info>
59
58
60
- Specifing a router script is required when the used environment is not "dev",
61
- "prod", or "test".
62
-
63
59
See also: http://www.php.net/manual/en/features.commandline.webserver.php
64
60
EOF
65
61
)
Original file line number Diff line number Diff line change @@ -43,22 +43,18 @@ protected function configure()
43
43
44
44
<info>php %command.full_name%</info>
45
45
46
- To change the default bind address and the default port use the <info>address</info> argument:
46
+ Change the default address and port by passing them as an argument:
47
47
48
48
<info>php %command.full_name% 127.0.0.1:8080</info>
49
49
50
- To change the default document root directory use the <info>--docroot</info> option:
50
+ Use the <info>--docroot</info> option to change the default docroot directory :
51
51
52
52
<info>php %command.full_name% --docroot=htdocs/</info>
53
53
54
- If you have a custom document root directory layout, you can specify your own
55
- router script using the <info>--router</info> option:
54
+ Specify your own router script via the <info>--router</info> option:
56
55
57
56
<info>php %command.full_name% --router=app/config/router.php</info>
58
57
59
- Specifying a router script is required when the used environment is not <comment>"dev"</comment> or
60
- <comment>"prod"</comment>.
61
-
62
58
See also: http://www.php.net/manual/en/features.commandline.webserver.php
63
59
EOF
64
60
)
Original file line number Diff line number Diff line change @@ -120,14 +120,13 @@ public function start($router = null)
120
120
$ process ->disableOutput ();
121
121
$ process ->start ();
122
122
123
- $ lockFile = $ this ->getLockFile ();
124
- touch ($ lockFile );
125
-
126
123
if (!$ process ->isRunning ()) {
127
- unlink ($ lockFile );
128
124
throw new \RuntimeException ('Unable to start the server process. ' );
129
125
}
130
126
127
+ $ lockFile = $ this ->getLockFile ();
128
+ touch ($ lockFile );
129
+
131
130
// stop the web server when the lock file is removed
132
131
while ($ process ->isRunning ()) {
133
132
if (!file_exists ($ lockFile )) {
You can’t perform that action at this time.
0 commit comments