Skip to content

Commit bf2e689

Browse files
committed
Add initial set of files
0 parents  commit bf2e689

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

+8022
-0
lines changed

.env

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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=5759849d2de7daa931acaa98da95b4e1
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+
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
30+
# For a PostgreSQL database, use: "postgresql://db_user:[email protected]:5432/db_name?serverVersion=11&charset=utf8"
31+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
32+
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7
33+
###< doctrine/doctrine-bundle ###

.env.test

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

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 ###

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) Fabien Potencier
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

bin/console

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

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: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"require": {
5+
"php": "^7.2.5",
6+
"ext-ctype": "*",
7+
"ext-iconv": "*",
8+
"composer/package-versions-deprecated": "^1.10",
9+
"doctrine/annotations": "^1.0",
10+
"doctrine/doctrine-bundle": "^2.1",
11+
"doctrine/doctrine-migrations-bundle": "^3.0",
12+
"doctrine/orm": "^2.7",
13+
"phpdocumentor/reflection-docblock": "^5.2",
14+
"sensio/framework-extra-bundle": "^5.1",
15+
"symfony/asset": "5.1.*",
16+
"symfony/console": "5.1.*",
17+
"symfony/dotenv": "5.1.*",
18+
"symfony/expression-language": "5.1.*",
19+
"symfony/flex": "^1.3.1",
20+
"symfony/form": "5.1.*",
21+
"symfony/framework-bundle": "5.1.*",
22+
"symfony/http-client": "5.1.*",
23+
"symfony/intl": "5.1.*",
24+
"symfony/mailer": "5.1.*",
25+
"symfony/mime": "5.1.*",
26+
"symfony/monolog-bundle": "^3.1",
27+
"symfony/notifier": "5.1.*",
28+
"symfony/process": "5.1.*",
29+
"symfony/property-access": "5.1.*",
30+
"symfony/property-info": "5.1.*",
31+
"symfony/security-bundle": "5.1.*",
32+
"symfony/serializer": "5.1.*",
33+
"symfony/string": "5.1.*",
34+
"symfony/translation": "5.1.*",
35+
"symfony/twig-bundle": "5.1.*",
36+
"symfony/validator": "5.1.*",
37+
"symfony/web-link": "5.1.*",
38+
"symfony/yaml": "5.1.*",
39+
"twig/extra-bundle": "^2.12|^3.0",
40+
"twig/twig": "^2.12|^3.0"
41+
},
42+
"require-dev": {
43+
"symfony/browser-kit": "^5.1",
44+
"symfony/css-selector": "^5.1",
45+
"symfony/debug-bundle": "^5.1",
46+
"symfony/maker-bundle": "^1.0",
47+
"symfony/monolog-bundle": "^3.0",
48+
"symfony/phpunit-bridge": "^5.1",
49+
"symfony/stopwatch": "^5.1",
50+
"symfony/twig-bundle": "^5.1",
51+
"symfony/var-dumper": "^5.1",
52+
"symfony/web-profiler-bundle": "^5.1"
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+
"paragonie/random_compat": "2.*",
73+
"symfony/polyfill-ctype": "*",
74+
"symfony/polyfill-iconv": "*",
75+
"symfony/polyfill-php72": "*",
76+
"symfony/polyfill-php71": "*",
77+
"symfony/polyfill-php70": "*",
78+
"symfony/polyfill-php56": "*"
79+
},
80+
"scripts": {
81+
"auto-scripts": {
82+
"cache:clear": "symfony-cmd",
83+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
84+
},
85+
"post-install-cmd": [
86+
"@auto-scripts"
87+
],
88+
"post-update-cmd": [
89+
"@auto-scripts"
90+
]
91+
},
92+
"conflict": {
93+
"symfony/symfony": "*"
94+
},
95+
"extra": {
96+
"symfony": {
97+
"allow-contrib": false,
98+
"require": "5.1.*"
99+
}
100+
}
101+
}

0 commit comments

Comments
 (0)