Skip to content

Commit 78af1b4

Browse files
committed
Default 4.2-BETA1 installation
0 parents  commit 78af1b4

File tree

18 files changed

+1805
-0
lines changed

18 files changed

+1805
-0
lines changed

.env

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file defines all environment variables that the application needs.
2+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE.
3+
# Use ".env.local" for local overrides during development.
4+
# Use real environment variables when deploying to production.
5+
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
6+
7+
###> symfony/framework-bundle ###
8+
APP_ENV=dev
9+
APP_SECRET=ad33d4d8b44231f5233cd8dfd8f355bc
10+
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
11+
#TRUSTED_HOSTS=localhost,example.com
12+
###< symfony/framework-bundle ###

.gitignore

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

bin/console

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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\Debug\Debug;
8+
9+
set_time_limit(0);
10+
11+
require dirname(__DIR__).'/vendor/autoload.php';
12+
13+
if (!class_exists(Application::class)) {
14+
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
15+
}
16+
17+
$input = new ArgvInput();
18+
if (null !== $_ENV['APP_ENV'] = $input->getParameterOption(['--env', '-e'], null, true)) {
19+
putenv('APP_ENV='.$_ENV['APP_ENV']);
20+
// force loading .env files when --env is defined
21+
$_SERVER['APP_ENV'] = null;
22+
}
23+
24+
if ($input->hasParameterOption('--no-debug', true)) {
25+
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
26+
}
27+
28+
require dirname(__DIR__).'/src/.bootstrap.php';
29+
30+
if ($_SERVER['APP_DEBUG']) {
31+
umask(0000);
32+
33+
if (class_exists(Debug::class)) {
34+
Debug::enable();
35+
}
36+
}
37+
38+
$kernel = new Kernel($_SERVER['APP_ENV'], $_SERVER['APP_DEBUG']);
39+
$application = new Application($kernel);
40+
$application->run($input);

composer.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"minimum-stability": "dev",
5+
"require": {
6+
"php": "^7.1.3",
7+
"ext-ctype": "*",
8+
"ext-iconv": "*",
9+
"symfony/console": "4.2.*",
10+
"symfony/flex": "^1.1",
11+
"symfony/framework-bundle": "4.2.*",
12+
"symfony/yaml": "4.2.*"
13+
},
14+
"require-dev": {
15+
"symfony/dotenv": "4.2.*"
16+
},
17+
"config": {
18+
"preferred-install": {
19+
"*": "dist"
20+
},
21+
"sort-packages": true
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"App\\": "src/"
26+
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"App\\Tests\\": "tests/"
31+
}
32+
},
33+
"replace": {
34+
"paragonie/random_compat": "2.*",
35+
"symfony/polyfill-ctype": "*",
36+
"symfony/polyfill-iconv": "*",
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": "4.2.*"
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)