Skip to content

Commit 0d50375

Browse files
committed
Installed Symfony
0 parents  commit 0d50375

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

+7794
-0
lines changed

.env

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# In all environments, the following files are loaded if they exist,
2+
# the later 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/configuration.html#infrastructure-related-configuration
15+
16+
###> symfony/framework-bundle ###
17+
APP_ENV=dev
18+
APP_SECRET=14d9b9bc46964bb8bc033ec3f3ef67d7
19+
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
20+
#TRUSTED_HOSTS='^localhost|example\.com$'
21+
###< symfony/framework-bundle ###
22+
23+
###> doctrine/doctrine-bundle ###
24+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
25+
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
26+
# Configure your db driver and server_version in config/packages/doctrine.yaml
27+
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
28+
###< doctrine/doctrine-bundle ###
29+
30+
###> symfony/swiftmailer-bundle ###
31+
# For Gmail as a transport, use: "gmail://username:password@localhost"
32+
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
33+
# Delivery is disabled by default via "null://localhost"
34+
MAILER_URL=null://localhost
35+
###< symfony/swiftmailer-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

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
###> symfony/framework-bundle ###
3+
/.env.local
4+
/.env.local.php
5+
/.env.*.local
6+
/public/bundles/
7+
/var/
8+
/vendor/
9+
###< symfony/framework-bundle ###
10+
11+
###> symfony/phpunit-bridge ###
12+
.phpunit
13+
.phpunit.result.cache
14+
/phpunit.xml
15+
###< symfony/phpunit-bridge ###
16+
17+
###> symfony/web-server-bundle ###
18+
/.web-server-pid
19+
###< symfony/web-server-bundle ###

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\Debug\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

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

0 commit comments

Comments
 (0)