Skip to content

Commit 3229808

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #724
2 parents 24cc9f6 + a0cb2ea commit 3229808

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+132
-46
lines changed

behat/symfony2-extension/2.1/config/bootstrap.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<?php
22

3+
use Symfony\Component\Dotenv\Dotenv;
4+
35
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');
4-
require dirname(__DIR__, 2).'/config/bootstrap.php';
6+
7+
if (file_exists(dirname(__DIR__, 2).'/config/bootstrap.php')) {
8+
require dirname(__DIR__, 2).'/config/bootstrap.php';
9+
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
10+
(new Dotenv())->bootEnv(dirname(__DIR__, 2).'/.env');
11+
}

behat/symfony2-extension/2.1/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"copy-from-recipe": {
33
"behat.yml.dist": "behat.yml.dist",
4-
"config/": "%CONFIG_DIR%/",
54
"features/": "features/"
65
},
76
"aliases": ["behat"],

phpunit/phpunit/4.7/config/bootstrap.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

phpunit/phpunit/4.7/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"copy-from-recipe": {
33
".env.test": ".env.test",
44
"phpunit.xml.dist": "phpunit.xml.dist",
5-
"config/": "%CONFIG_DIR%/",
65
"tests/": "tests/"
76
},
87
"gitignore": [

phpunit/phpunit/4.7/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
8-
bootstrap="config/bootstrap.php"
8+
bootstrap="tests/bootstrap.php"
99
>
1010
<php>
1111
<ini name="error_reporting" value="-1" />

phpunit/phpunit/4.7/tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../symfony/phpunit-bridge/3.3/tests/

phpunit/phpunit/4.7/tests/.gitignore

Whitespace-only changes.

symfony/console/5.1/bin/console

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use App\Kernel;
5+
use Symfony\Bundle\FrameworkBundle\Console\Application;
6+
use Symfony\Component\Console\Input\ArgvInput;
7+
use Symfony\Component\Dotenv\Dotenv;
8+
use Symfony\Component\ErrorHandler\Debug;
9+
10+
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
11+
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
12+
}
13+
14+
set_time_limit(0);
15+
16+
require dirname(__DIR__).'/vendor/autoload.php';
17+
18+
if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {
19+
throw new LogicException('You need to add "symfony/framework-bundle" and "symfony/dotenv" as Composer dependencies.');
20+
}
21+
22+
$input = new ArgvInput();
23+
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
24+
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
25+
}
26+
27+
if ($input->hasParameterOption('--no-debug', true)) {
28+
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
29+
}
30+
31+
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
32+
33+
if ($_SERVER['APP_DEBUG']) {
34+
umask(0000);
35+
36+
if (class_exists(Debug::class)) {
37+
Debug::enable();
38+
}
39+
}
40+
41+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
42+
$application = new Application($kernel);
43+
$application->run($input);

symfony/console/5.1/manifest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"copy-from-recipe": {
3+
"bin/": "%BIN_DIR%/"
4+
},
5+
"aliases": ["cli"]
6+
}

symfony/framework-bundle/5.1/config

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../3.3/config/packages/cache.yaml
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
framework:
2+
#csrf_protection: true
3+
#http_method_override: true
4+
5+
# Enables session support. Note that the session will ONLY be started if you read or write from it.
6+
# Remove or comment this section to explicitly disable session support.
7+
session:
8+
handler_id: null
9+
cookie_secure: auto
10+
cookie_samesite: lax
11+
12+
#esi: true
13+
#fragments: true
14+
php_errors:
15+
log: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../4.2/config/packages/test/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../4.4/config/routes/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../4.2/config/services.yaml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../4.4/manifest.json
1+
../4.2/manifest.json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../4.4/post-install.txt
1+
../4.2/post-install.txt

symfony/framework-bundle/5.1/public

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
use App\Kernel;
4+
use Symfony\Component\Dotenv\Dotenv;
5+
use Symfony\Component\ErrorHandler\Debug;
6+
use Symfony\Component\HttpFoundation\Request;
7+
8+
require dirname(__DIR__).'/vendor/autoload.php';
9+
10+
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
11+
12+
if ($_SERVER['APP_DEBUG']) {
13+
umask(0000);
14+
15+
Debug::enable();
16+
}
17+
18+
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
19+
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
20+
}
21+
22+
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
23+
Request::setTrustedHosts([$trustedHosts]);
24+
}
25+
26+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
27+
$request = Request::createFromGlobals();
28+
$response = $kernel->handle($request);
29+
$response->send();
30+
$kernel->terminate($request, $response);

symfony/phpunit-bridge/3.3/config/bootstrap.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/3.3/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
8-
bootstrap="config/bootstrap.php"
8+
bootstrap="tests/bootstrap.php"
99
>
1010
<php>
1111
<ini name="error_reporting" value="-1" />

symfony/phpunit-bridge/3.3/tests/.gitignore

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
use Symfony\Component\Dotenv\Dotenv;
4+
5+
require dirname(__DIR__).'/vendor/autoload.php';
6+
7+
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
8+
require dirname(__DIR__).'/config/bootstrap.php';
9+
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
10+
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
11+
}

symfony/phpunit-bridge/4.1/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../3.3/config/

symfony/phpunit-bridge/4.1/config/bootstrap.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.1/manifest.json

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../3.3/manifest.json

symfony/phpunit-bridge/4.1/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
8-
bootstrap="config/bootstrap.php"
8+
bootstrap="tests/bootstrap.php"
99
>
1010
<php>
1111
<ini name="error_reporting" value="-1" />

symfony/phpunit-bridge/4.1/post-install.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../3.3/post-install.txt

symfony/phpunit-bridge/4.1/tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../3.3/tests/

symfony/phpunit-bridge/4.1/tests/.gitignore

Whitespace-only changes.

symfony/phpunit-bridge/4.2/.env.test

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.2/bin

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.2/config/bootstrap.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.2/manifest.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.2/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.2/post-install.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.2/tests

Lines changed: 0 additions & 1 deletion
This file was deleted.

symfony/phpunit-bridge/4.3/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../3.3/config/

symfony/phpunit-bridge/4.3/config/bootstrap.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../4.2/manifest.json
1+
../3.3/manifest.json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../4.2/phpunit.xml.dist
1+
../4.1/phpunit.xml.dist
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../4.2/post-install.txt
1+
../3.3/post-install.txt

symfony/phpunit-bridge/4.3/tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../3.3/tests/

symfony/phpunit-bridge/4.3/tests/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)