Skip to content

Commit 8c5b7e2

Browse files
committed
Default Symfony 5.0.0 installation
0 parents  commit 8c5b7e2

20 files changed

+2252
-0
lines changed

Diff for: .env

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# In all environments, the following files are loaded if they exist,
2+
# the latter taking precedence over the former:
3+
#
4+
# * .env contains default values for the environment variables needed by the app
5+
# * .env.local uncommitted file with local overrides
6+
# * .env.$APP_ENV committed environment-specific defaults
7+
# * .env.$APP_ENV.local uncommitted environment-specific overrides
8+
#
9+
# Real environment variables win over .env files.
10+
#
11+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12+
#
13+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
14+
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
15+
16+
###> symfony/framework-bundle ###
17+
APP_ENV=dev
18+
APP_SECRET=b00172a53597d40245b66d2c158b9988
19+
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
20+
#TRUSTED_HOSTS='^localhost|example\.com$'
21+
###< symfony/framework-bundle ###

Diff for: .gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
###> symfony/framework-bundle ###
3+
/.env.local
4+
/.env.local.php
5+
/.env.*.local
6+
/public/bundles/
7+
/var/
8+
/vendor/
9+
###< symfony/framework-bundle ###

Diff for: bin/console

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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\ErrorHandler\Debug;
8+
9+
if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
10+
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL;
11+
}
12+
13+
set_time_limit(0);
14+
15+
require dirname(__DIR__).'/vendor/autoload.php';
16+
17+
if (!class_exists(Application::class)) {
18+
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
19+
}
20+
21+
$input = new ArgvInput();
22+
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
23+
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
24+
}
25+
26+
if ($input->hasParameterOption('--no-debug', true)) {
27+
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
28+
}
29+
30+
require dirname(__DIR__).'/config/bootstrap.php';
31+
32+
if ($_SERVER['APP_DEBUG']) {
33+
umask(0000);
34+
35+
if (class_exists(Debug::class)) {
36+
Debug::enable();
37+
}
38+
}
39+
40+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
41+
$application = new Application($kernel);
42+
$application->run($input);

Diff for: composer.json

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"require": {
5+
"php": "^7.2.5",
6+
"ext-ctype": "*",
7+
"ext-iconv": "*",
8+
"symfony/console": "5.0.*",
9+
"symfony/dotenv": "5.0.*",
10+
"symfony/flex": "^1.3.1",
11+
"symfony/framework-bundle": "5.0.*",
12+
"symfony/yaml": "5.0.*"
13+
},
14+
"require-dev": {
15+
},
16+
"config": {
17+
"preferred-install": {
18+
"*": "dist"
19+
},
20+
"sort-packages": true
21+
},
22+
"autoload": {
23+
"psr-4": {
24+
"App\\": "src/"
25+
}
26+
},
27+
"autoload-dev": {
28+
"psr-4": {
29+
"App\\Tests\\": "tests/"
30+
}
31+
},
32+
"replace": {
33+
"paragonie/random_compat": "2.*",
34+
"symfony/polyfill-ctype": "*",
35+
"symfony/polyfill-iconv": "*",
36+
"symfony/polyfill-php72": "*",
37+
"symfony/polyfill-php71": "*",
38+
"symfony/polyfill-php70": "*",
39+
"symfony/polyfill-php56": "*"
40+
},
41+
"scripts": {
42+
"auto-scripts": {
43+
"cache:clear": "symfony-cmd",
44+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
45+
},
46+
"post-install-cmd": [
47+
"@auto-scripts"
48+
],
49+
"post-update-cmd": [
50+
"@auto-scripts"
51+
]
52+
},
53+
"conflict": {
54+
"symfony/symfony": "*"
55+
},
56+
"extra": {
57+
"symfony": {
58+
"allow-contrib": false,
59+
"require": "5.0.*"
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)