Skip to content

Commit 0c0c2e3

Browse files
jordisala1991dbu
authored andcommitted
Remove dependency with Symfony main package (#163)
Replace symfony/symfony by concrete bundles/components it is a really bad idea to require the full symfony package, it is better to just rely on the packages that you require directly.
1 parent 9c14c35 commit 0c0c2e3

File tree

8 files changed

+35
-7
lines changed

8 files changed

+35
-7
lines changed

composer.json

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,31 @@
99
}
1010
],
1111
"require": {
12-
"php": "^5.6|^7.0",
13-
"symfony/symfony": "^2.8|^3.0",
14-
"symfony/phpunit-bridge": "^3.2",
15-
"symfony/monolog-bundle": "^2.1|^3.0",
12+
"php": "^5.6 || ^7.0",
1613
"doctrine/common": "^2.4",
14+
"doctrine/data-fixtures": "^1.0",
1715
"doctrine/doctrine-bundle": "^1.0",
18-
"doctrine/phpcr-odm": "^1.1|^2.0",
1916
"doctrine/phpcr-bundle": "^1.1",
20-
"doctrine/data-fixtures": "^1.0",
17+
"doctrine/phpcr-odm": "^1.1 || ^2.0",
18+
"friendsofsymfony/jsrouting-bundle": "^1.1",
2119
"jackalope/jackalope": "^1.1.5",
2220
"jackalope/jackalope-doctrine-dbal": "^1.1.5",
23-
"friendsofsymfony/jsrouting-bundle": "^1.1"
21+
"symfony/browser-kit": "^2.8 || ^3.0",
22+
"symfony/console": "^2.8 || ^3.0",
23+
"symfony/css-selector": "^2.8 || ^3.0",
24+
"symfony/debug": "^2.8 || ^3.0",
25+
"symfony/dependency-injection": "^2.8 || ^3.0",
26+
"symfony/doctrine-bridge": "^2.8 || ^3.0",
27+
"symfony/framework-bundle": "^2.8.1 || ^3.0",
28+
"symfony/http-foundation": "^2.8 || ^3.0",
29+
"symfony/http-kernel": "^2.8 || ^3.0",
30+
"symfony/monolog-bundle": "^2.8 || ^3.0",
31+
"symfony/process": "^2.8 || ^3.0",
32+
"symfony/security-bundle": "^2.8 || ^3.0",
33+
"symfony/twig-bundle": "^2.8 || ^3.0"
34+
},
35+
"require-dev": {
36+
"symfony/phpunit-bridge": "^4.0"
2437
},
2538
"autoload": {
2639
"psr-4": {
@@ -32,6 +45,9 @@
3245
"Symfony\\Cmf\\Component\\Testing\\Tests\\": "tests/"
3346
}
3447
},
48+
"config": {
49+
"sort-packages": true
50+
},
3551
"extra": {
3652
"branch-alias": {
3753
"dev-master": "2.0-dev"

src/Functional/DbManager/PHPCR.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
class PHPCR
2424
{
2525
protected $container;
26+
2627
protected $om;
2728

2829
/**

src/HttpKernel/TestKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
abstract class TestKernel extends Kernel
4040
{
4141
protected $bundleSets = array();
42+
4243
protected $requiredBundles = array();
4344

4445
/**

src/Phpunit/DatabaseTestListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
class DatabaseTestListener implements \PHPUnit_Framework_TestListener
1919
{
2020
protected static $currentSuite;
21+
2122
private $processBuilder;
23+
2224
private $prefix = array();
2325

2426
public function __construct($processBuilder = null)

src/Unit/Constraint/SchemaAcceptsXml.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
class SchemaAcceptsXml extends \PHPUnit_Framework_Constraint
1515
{
1616
protected $xml;
17+
1718
protected $failingElement;
19+
1820
protected $errors;
1921

2022
public function __construct($xml)

tests/Functional/BaseTestCaseTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
class BaseTestCaseTest extends \PHPUnit_Framework_TestCase
1717
{
1818
private $container;
19+
1920
private $kernel;
21+
2022
private $testCase;
23+
2124
private $client;
2225

2326
protected function setUp()

tests/HttpKernel/TestKernelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
class TestKernelTest extends \PHPUnit_Framework_TestCase
2121
{
2222
private $kernel;
23+
2324
private $mockBundle;
2425

2526
protected function setUp()

tests/Phpunit/DatabaseTestListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
class DatabaseTestListenerTest extends \PHPUnit_Framework_TestCase
1717
{
1818
protected $listener;
19+
1920
private $processBuilder;
21+
2022
private static $i;
2123

2224
protected function setUp()

0 commit comments

Comments
 (0)