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+
}

0 commit comments

Comments
 (0)