Skip to content

Commit a66c193

Browse files
Add initial set of files
0 parents  commit a66c193

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7610
-0
lines changed

.env

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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=db451bc84dc761db739dbafc78798b9e
19+
###< symfony/framework-bundle ###
20+
21+
###> symfony/mailer ###
22+
# MAILER_DSN=smtp://localhost
23+
###< symfony/mailer ###
24+
25+
###> doctrine/doctrine-bundle ###
26+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
27+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
28+
#
29+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
30+
# DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7"
31+
DATABASE_URL="postgresql://db_user:[email protected]:5432/db_name?serverVersion=13&charset=utf8"
32+
###< doctrine/doctrine-bundle ###

.env.test

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='$ecretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999
5+
PANTHER_APP_ENV=panther

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
###> symfony/phpunit-bridge ###
13+
.phpunit
14+
.phpunit.result.cache
15+
/phpunit.xml
16+
###< symfony/phpunit-bridge ###

bin/console

+43
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);

bin/phpunit

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
5+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
6+
exit(1);
7+
}
8+
9+
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
10+
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
11+
}
12+
13+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';

composer.json

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"minimum-stability": "dev",
5+
"prefer-stable": true,
6+
"require": {
7+
"php": ">=7.2.5",
8+
"ext-ctype": "*",
9+
"ext-iconv": "*",
10+
"composer/package-versions-deprecated": "1.11.99.1",
11+
"doctrine/annotations": "^1.0",
12+
"doctrine/doctrine-bundle": "^2.2",
13+
"doctrine/doctrine-migrations-bundle": "^3.0",
14+
"doctrine/orm": "^2.8",
15+
"phpdocumentor/reflection-docblock": "^5.2",
16+
"sensio/framework-extra-bundle": "^5.1",
17+
"symfony/asset": "5.2.*",
18+
"symfony/console": "5.2.*",
19+
"symfony/dotenv": "5.2.*",
20+
"symfony/expression-language": "5.2.*",
21+
"symfony/flex": "^1.3.1",
22+
"symfony/form": "5.2.*",
23+
"symfony/framework-bundle": "5.2.*",
24+
"symfony/http-client": "5.2.*",
25+
"symfony/intl": "5.2.*",
26+
"symfony/mailer": "5.2.*",
27+
"symfony/mime": "5.2.*",
28+
"symfony/monolog-bundle": "^3.1",
29+
"symfony/notifier": "5.2.*",
30+
"symfony/process": "5.2.*",
31+
"symfony/property-access": "5.2.*",
32+
"symfony/property-info": "5.2.*",
33+
"symfony/security-bundle": "5.2.*",
34+
"symfony/serializer": "5.2.*",
35+
"symfony/string": "5.2.*",
36+
"symfony/translation": "5.2.*",
37+
"symfony/twig-bundle": "^5.2",
38+
"symfony/validator": "5.2.*",
39+
"symfony/web-link": "5.2.*",
40+
"symfony/yaml": "5.2.*",
41+
"twig/extra-bundle": "^2.12|^3.0",
42+
"twig/twig": "^2.12|^3.0"
43+
},
44+
"require-dev": {
45+
"symfony/browser-kit": "^5.2",
46+
"symfony/css-selector": "^5.2",
47+
"symfony/debug-bundle": "^5.2",
48+
"symfony/maker-bundle": "^1.0",
49+
"symfony/phpunit-bridge": "^5.2",
50+
"symfony/stopwatch": "^5.2",
51+
"symfony/var-dumper": "^5.2",
52+
"symfony/web-profiler-bundle": "^5.2"
53+
},
54+
"config": {
55+
"optimize-autoloader": true,
56+
"preferred-install": {
57+
"*": "dist"
58+
},
59+
"sort-packages": true
60+
},
61+
"autoload": {
62+
"psr-4": {
63+
"App\\": "src/"
64+
}
65+
},
66+
"autoload-dev": {
67+
"psr-4": {
68+
"App\\Tests\\": "tests/"
69+
}
70+
},
71+
"replace": {
72+
"symfony/polyfill-ctype": "*",
73+
"symfony/polyfill-iconv": "*",
74+
"symfony/polyfill-php72": "*"
75+
},
76+
"scripts": {
77+
"auto-scripts": {
78+
"cache:clear": "symfony-cmd",
79+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
80+
},
81+
"post-install-cmd": [
82+
"@auto-scripts"
83+
],
84+
"post-update-cmd": [
85+
"@auto-scripts"
86+
]
87+
},
88+
"conflict": {
89+
"symfony/symfony": "*"
90+
},
91+
"extra": {
92+
"symfony": {
93+
"allow-contrib": false,
94+
"require": "5.2.*"
95+
}
96+
}
97+
}

0 commit comments

Comments
 (0)