Skip to content

Commit ad86706

Browse files
author
dmitriy
committed
refactoring
1 parent 5699a61 commit ad86706

Some content is hidden

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

44 files changed

+529
-460
lines changed

.dockerignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
/.env.*.local
88
.env.local.php
99
/public/bundles/
10-
var/mysql-data
11-
var/rabbitmq
12-
vendor/
10+
/var/mysql-data
11+
/var/rabbitmq
12+
/vendor/
13+
/tools/*/vendor/
1314

1415
Dockerfile
1516
docker-compose.yml

.env

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# In all environments, the following files are loaded if they exist,
2-
# the later taking precedence over the former:
2+
# the latter taking precedence over the former:
33
#
44
# * .env contains default values for the environment variables needed by the app
55
# * .env.local uncommitted file with local overrides
@@ -17,23 +17,21 @@
1717
APP_ENV=dev
1818
APP_DEBUG=1
1919
APP_SECRET=42f011ec3a7bde0bec87364b1d967193
20-
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
20+
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
2121
#TRUSTED_HOSTS='^localhost|example\.com$'
2222
###< symfony/framework-bundle ###
2323

2424
###> doctrine/doctrine-bundle ###
2525
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
2626
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
27-
# Configure your db driver and server_version in config/packages/doctrine.yaml
27+
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8"
28+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
2829
DATABASE_URL=mysql://root:secret@mysql:3306/symfony
2930
###< doctrine/doctrine-bundle ###
3031

31-
###> symfony/swiftmailer-bundle ###
32-
# For Gmail as a transport, use: "gmail://username:password@localhost"
33-
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
34-
# Delivery is disabled by default via "null://localhost"
35-
MAILER_URL=null://localhost
36-
###< symfony/swiftmailer-bundle ###
32+
###> symfony/mailer ###
33+
# MAILER_DSN=smtp://localhost
34+
###< symfony/mailer ###
3735

3836
###> symfony/messenger ###
3937
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/.idea
22
reports/*
33
!reports/.gitkeep
4-
.phpunit.result.cache
54

65
###> symfony/framework-bundle ###
76
/.env.local
87
/.env.local.php
98
/.env.*.local
9+
/config/secrets/prod/prod.decrypt.private.php
1010
/public/bundles/
1111
/var/
1212
/vendor/
1313
###< symfony/framework-bundle ###
1414

1515
###> symfony/phpunit-bridge ###
1616
.phpunit
17+
.phpunit.result.cache
1718
/phpunit.xml
1819
###< symfony/phpunit-bridge ###
1920

bin/console

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ declare(strict_types = 1);
55
use App\Kernel;
66
use Symfony\Bundle\FrameworkBundle\Console\Application;
77
use Symfony\Component\Console\Input\ArgvInput;
8-
use Symfony\Component\Debug\Debug;
8+
use Symfony\Component\ErrorHandler\Debug;
99

10-
if (false === 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;
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;
1212
}
1313

1414
set_time_limit(0);
1515

1616
require dirname(__DIR__).'/vendor/autoload.php';
1717

1818
if (!class_exists(Application::class)) {
19-
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
19+
throw new LogicException('You need to add "symfony/framework-bundle" as a Composer dependency.');
2020
}
2121

2222
$input = new ArgvInput();

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
"symfony/framework-bundle": "4.4.*",
5959
"symfony/http-client": "4.4.*",
6060
"symfony/intl": "4.4.*",
61+
"symfony/mailer": "4.4.*",
6162
"symfony/messenger": "4.4.*",
6263
"symfony/monolog-bundle": "^3.5",
6364
"symfony/orm-pack": "*",
6465
"symfony/process": "4.4.*",
6566
"symfony/routing": "4.4.*",
6667
"symfony/security-bundle": "4.4.*",
6768
"symfony/serializer-pack": "*",
68-
"symfony/swiftmailer-bundle": "^3.1",
6969
"symfony/translation": "4.4.*",
7070
"symfony/twig-bundle": "4.4.*",
7171
"symfony/validator": "4.4.*",
@@ -104,6 +104,7 @@
104104
"paragonie/random_compat": "2.*",
105105
"symfony/polyfill-ctype": "*",
106106
"symfony/polyfill-iconv": "*",
107+
"symfony/polyfill-php72": "*",
107108
"symfony/polyfill-php71": "*",
108109
"symfony/polyfill-php70": "*",
109110
"symfony/polyfill-php56": "*"
@@ -131,7 +132,7 @@
131132
"target-directory": "tools"
132133
},
133134
"symfony": {
134-
"allow-contrib": "true",
135+
"allow-contrib": true,
135136
"require": "4.4.*"
136137
}
137138
}

0 commit comments

Comments
 (0)