Skip to content

Commit faa502c

Browse files
author
39ff
committed
first commit
1 parent 6527a34 commit faa502c

37 files changed

+6402
-0
lines changed

.gitignore

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

bin/console

Lines changed: 42 additions & 0 deletions
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 (!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 LogicException('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);

composer.json

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

0 commit comments

Comments
 (0)