Skip to content

Commit 47d8a82

Browse files
committed
Add initial set of files
0 parents  commit 47d8a82

File tree

17 files changed

+2813
-0
lines changed

17 files changed

+2813
-0
lines changed

.env

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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.html#use-environment-variables-for-infrastructure-configuration
15+
16+
###> symfony/framework-bundle ###
17+
APP_ENV=dev
18+
APP_SECRET=44a445631987a021f689d866a9f6b7db
19+
###< symfony/framework-bundle ###

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 ###

bin/console

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use App\Kernel;
5+
use Symfony\Bundle\FrameworkBundle\Console\Application;
6+
7+
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
8+
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
9+
}
10+
11+
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
12+
13+
return function (array $context) {
14+
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
15+
16+
return new Application($kernel);
17+
};

composer.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"minimum-stability": "stable",
5+
"prefer-stable": true,
6+
"require": {
7+
"php": ">=8.0.2",
8+
"ext-ctype": "*",
9+
"ext-iconv": "*",
10+
"symfony/console": "6.0.*",
11+
"symfony/dotenv": "6.0.*",
12+
"symfony/flex": "^2",
13+
"symfony/framework-bundle": "6.0.*",
14+
"symfony/runtime": "6.0.*",
15+
"symfony/yaml": "6.0.*"
16+
},
17+
"require-dev": {
18+
},
19+
"config": {
20+
"allow-plugins": {
21+
"composer/package-versions-deprecated": true,
22+
"symfony/flex": true,
23+
"symfony/runtime": true
24+
},
25+
"optimize-autoloader": true,
26+
"preferred-install": {
27+
"*": "dist"
28+
},
29+
"sort-packages": true
30+
},
31+
"autoload": {
32+
"psr-4": {
33+
"App\\": "src/"
34+
}
35+
},
36+
"autoload-dev": {
37+
"psr-4": {
38+
"App\\Tests\\": "tests/"
39+
}
40+
},
41+
"replace": {
42+
"symfony/polyfill-ctype": "*",
43+
"symfony/polyfill-iconv": "*",
44+
"symfony/polyfill-php72": "*",
45+
"symfony/polyfill-php73": "*",
46+
"symfony/polyfill-php74": "*",
47+
"symfony/polyfill-php80": "*"
48+
},
49+
"scripts": {
50+
"auto-scripts": {
51+
"cache:clear": "symfony-cmd",
52+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
53+
},
54+
"post-install-cmd": [
55+
"@auto-scripts"
56+
],
57+
"post-update-cmd": [
58+
"@auto-scripts"
59+
]
60+
},
61+
"conflict": {
62+
"symfony/symfony": "*"
63+
},
64+
"extra": {
65+
"symfony": {
66+
"allow-contrib": false,
67+
"require": "6.0.*"
68+
}
69+
}
70+
}

0 commit comments

Comments
 (0)