Skip to content

Commit 132902c

Browse files
committed
moved server:* command to a new bundle
1 parent 7bc268e commit 132902c

File tree

15 files changed

+126
-7
lines changed

15 files changed

+126
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
3.3.0
55
-----
66

7+
* The server:* commands and their associated router files were moved to WebServerBundle
78
* Translation related services are not loaded anymore when the `framework.translator` option
89
is disabled.
910
* Added `GlobalVariables::getToken()`
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CHANGELOG
2+
=========
3+
4+
3.3.0
5+
-----
6+
7+
* Added bundle

src/Symfony/Bundle/FrameworkBundle/Command/ServerCommand.php renamed to src/Symfony/Bundle/WebServerBundle/Command/ServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\FrameworkBundle\Command;
12+
namespace Symfony\Bundle\WebServerBundle\Command;
1313

1414
/**
1515
* Base methods for commands related to PHP's built-in web server.

src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php renamed to src/Symfony/Bundle/WebServerBundle/Command/ServerRunCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\FrameworkBundle\Command;
12+
namespace Symfony\Bundle\WebServerBundle\Command;
1313

1414
use Symfony\Component\Console\Input\InputArgument;
1515
use Symfony\Component\Console\Input\InputOption;
@@ -152,7 +152,7 @@ private function createPhpProcessBuilder(SymfonyStyle $io, $address, $router, $e
152152
$router = $router ?: $this
153153
->getContainer()
154154
->get('kernel')
155-
->locateResource(sprintf('@FrameworkBundle/Resources/config/router_%s.php', $env))
155+
->locateResource(sprintf('@FrameworkBundle/Resources/router_%s.php', $env))
156156
;
157157

158158
if (!file_exists($router)) {

src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php renamed to src/Symfony/Bundle/WebServerBundle/Command/ServerStartCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\FrameworkBundle\Command;
12+
namespace Symfony\Bundle\WebServerBundle\Command;
1313

1414
use Symfony\Component\Console\Input\InputArgument;
1515
use Symfony\Component\Console\Input\InputInterface;
@@ -190,7 +190,7 @@ private function determineRouterScript($router, $env, SymfonyStyle $io)
190190
$router = $this
191191
->getContainer()
192192
->get('kernel')
193-
->locateResource(sprintf('@FrameworkBundle/Resources/config/router_%s.php', $env))
193+
->locateResource(sprintf('@FrameworkBundle/Resources/router_%s.php', $env))
194194
;
195195
}
196196

src/Symfony/Bundle/FrameworkBundle/Command/ServerStatusCommand.php renamed to src/Symfony/Bundle/WebServerBundle/Command/ServerStatusCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\FrameworkBundle\Command;
12+
namespace Symfony\Bundle\WebServerBundle\Command;
1313

1414
use Symfony\Component\Console\Input\InputArgument;
1515
use Symfony\Component\Console\Input\InputInterface;

src/Symfony/Bundle/FrameworkBundle/Command/ServerStopCommand.php renamed to src/Symfony/Bundle/WebServerBundle/Command/ServerStopCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Bundle\FrameworkBundle\Command;
12+
namespace Symfony\Bundle\WebServerBundle\Command;
1313

1414
use Symfony\Component\Console\Input\InputArgument;
1515
use Symfony\Component\Console\Input\InputInterface;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2004-2016 Fabien Potencier
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
WebServerBundle
2+
===============
3+
4+
Resources
5+
---------
6+
7+
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
8+
* [Report issues](https://github.com/symfony/symfony/issues) and
9+
[send Pull Requests](https://github.com/symfony/symfony/pulls)
10+
in the [main Symfony repository](https://github.com/symfony/symfony)

src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php renamed to src/Symfony/Bundle/WebServerBundle/Resources/router_dev.php

File renamed without changes.

0 commit comments

Comments
 (0)