Skip to content

Commit 24ca1ed

Browse files
committed
Add initial set of files
0 parents  commit 24ca1ed

Some content is hidden

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

48 files changed

+7700
-0
lines changed

.env

+33
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=df2cde07af9b2e9a7b1e582e02c0601b
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:db_password@127.0.0.1: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:db_password@127.0.0.1:3306/db_name?serverVersion=5.7
33+
###< 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

+42
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 (false === 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 RuntimeException('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

+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

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"require": {
5+
"php": "^7.1.3",
6+
"ext-ctype": "*",
7+
"ext-iconv": "*",
8+
"sensio/framework-extra-bundle": "^5.1",
9+
"symfony/asset": "4.4.*",
10+
"symfony/console": "4.4.*",
11+
"symfony/dotenv": "4.4.*",
12+
"symfony/expression-language": "4.4.*",
13+
"symfony/flex": "^1.3.1",
14+
"symfony/form": "4.4.*",
15+
"symfony/framework-bundle": "4.4.*",
16+
"symfony/http-client": "4.4.*",
17+
"symfony/intl": "4.4.*",
18+
"symfony/mailer": "4.4.*",
19+
"symfony/monolog-bundle": "^3.1",
20+
"symfony/orm-pack": "*",
21+
"symfony/process": "4.4.*",
22+
"symfony/security-bundle": "4.4.*",
23+
"symfony/serializer-pack": "*",
24+
"symfony/translation": "4.4.*",
25+
"symfony/twig-pack": "*",
26+
"symfony/validator": "4.4.*",
27+
"symfony/web-link": "4.4.*",
28+
"symfony/yaml": "4.4.*"
29+
},
30+
"require-dev": {
31+
"symfony/debug-pack": "*",
32+
"symfony/maker-bundle": "^1.0",
33+
"symfony/profiler-pack": "*",
34+
"symfony/test-pack": "*"
35+
},
36+
"config": {
37+
"preferred-install": {
38+
"*": "dist"
39+
},
40+
"sort-packages": true
41+
},
42+
"autoload": {
43+
"psr-4": {
44+
"App\\": "src/"
45+
}
46+
},
47+
"autoload-dev": {
48+
"psr-4": {
49+
"App\\Tests\\": "tests/"
50+
}
51+
},
52+
"replace": {
53+
"paragonie/random_compat": "2.*",
54+
"symfony/polyfill-ctype": "*",
55+
"symfony/polyfill-iconv": "*",
56+
"symfony/polyfill-php71": "*",
57+
"symfony/polyfill-php70": "*",
58+
"symfony/polyfill-php56": "*"
59+
},
60+
"scripts": {
61+
"auto-scripts": {
62+
"cache:clear": "symfony-cmd",
63+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
64+
},
65+
"post-install-cmd": [
66+
"@auto-scripts"
67+
],
68+
"post-update-cmd": [
69+
"@auto-scripts"
70+
]
71+
},
72+
"conflict": {
73+
"symfony/symfony": "*"
74+
},
75+
"extra": {
76+
"symfony": {
77+
"allow-contrib": false,
78+
"require": "4.4.*"
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)