Skip to content

Commit 6f43224

Browse files
committed
Add initial set of files
0 parents  commit 6f43224

Some content is hidden

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

50 files changed

+9090
-0
lines changed

.env

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

.env.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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
6+
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

.gitignore

Lines changed: 16 additions & 0 deletions
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

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

bin/phpunit

Lines changed: 13 additions & 0 deletions
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

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

0 commit comments

Comments
 (0)