Skip to content

Commit 42dcc6a

Browse files
JPechbertyJPechberty
JPechberty
authored and
JPechberty
committed
Add webapp packages
1 parent 8935a1a commit 42dcc6a

30 files changed

+8982
-1249
lines changed

.env

+21
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,24 @@
1818
APP_ENV=dev
1919
APP_SECRET=13fef4bd93bb5c6371d92481e7b39b10
2020
###< symfony/framework-bundle ###
21+
22+
###> doctrine/doctrine-bundle ###
23+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
24+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
25+
#
26+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
27+
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
28+
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
29+
DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8"
30+
###< doctrine/doctrine-bundle ###
31+
32+
###> symfony/messenger ###
33+
# Choose one of the transports below
34+
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
35+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
36+
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
37+
###< symfony/messenger ###
38+
39+
###> symfony/mailer ###
40+
# MAILER_DSN=null://null
41+
###< symfony/mailer ###

.env.test

+6
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

+10
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@
88
/var/
99
/vendor/
1010
###< symfony/framework-bundle ###
11+
12+
###> phpunit/phpunit ###
13+
/phpunit.xml
14+
.phpunit.result.cache
15+
###< phpunit/phpunit ###
16+
17+
###> symfony/phpunit-bridge ###
18+
.phpunit.result.cache
19+
/phpunit.xml
20+
###< symfony/phpunit-bridge ###

bin/phpunit

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!ini_get('date.timezone')) {
5+
ini_set('date.timezone', 'UTC');
6+
}
7+
8+
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
10+
require PHPUNIT_COMPOSER_INSTALL;
11+
PHPUnit\TextUI\Command::main();
12+
} else {
13+
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
14+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
15+
exit(1);
16+
}
17+
18+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
19+
}

composer.json

+38-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,39 @@
77
"php": ">=8.1",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
10+
"doctrine/doctrine-bundle": "^2.10",
11+
"doctrine/doctrine-migrations-bundle": "^3.2",
12+
"doctrine/orm": "^2.16",
13+
"phpdocumentor/reflection-docblock": "^5.3",
14+
"phpstan/phpdoc-parser": "^1.24",
15+
"symfony/asset": "6.3.*",
1016
"symfony/console": "6.3.*",
17+
"symfony/doctrine-messenger": "6.3.*",
1118
"symfony/dotenv": "6.3.*",
19+
"symfony/expression-language": "6.3.*",
1220
"symfony/flex": "^2",
21+
"symfony/form": "6.3.*",
1322
"symfony/framework-bundle": "6.3.*",
23+
"symfony/http-client": "6.3.*",
24+
"symfony/intl": "6.3.*",
25+
"symfony/mailer": "6.3.*",
26+
"symfony/mime": "6.3.*",
27+
"symfony/monolog-bundle": "^3.0",
28+
"symfony/notifier": "6.3.*",
29+
"symfony/process": "6.3.*",
30+
"symfony/property-access": "6.3.*",
31+
"symfony/property-info": "6.3.*",
1432
"symfony/runtime": "6.3.*",
15-
"symfony/yaml": "6.3.*"
16-
},
17-
"require-dev": {
33+
"symfony/security-bundle": "6.3.*",
34+
"symfony/serializer": "6.3.*",
35+
"symfony/string": "6.3.*",
36+
"symfony/translation": "6.3.*",
37+
"symfony/twig-bundle": "6.3.*",
38+
"symfony/validator": "6.3.*",
39+
"symfony/web-link": "6.3.*",
40+
"symfony/yaml": "6.3.*",
41+
"twig/extra-bundle": "^2.12|^3.0",
42+
"twig/twig": "^2.12|^3.0"
1843
},
1944
"config": {
2045
"allow-plugins": {
@@ -63,5 +88,15 @@
6388
"allow-contrib": false,
6489
"require": "6.3.*"
6590
}
91+
},
92+
"require-dev": {
93+
"phpunit/phpunit": "^9.5",
94+
"symfony/browser-kit": "6.3.*",
95+
"symfony/css-selector": "6.3.*",
96+
"symfony/debug-bundle": "6.3.*",
97+
"symfony/maker-bundle": "^1.0",
98+
"symfony/phpunit-bridge": "^6.3",
99+
"symfony/stopwatch": "6.3.*",
100+
"symfony/web-profiler-bundle": "6.3.*"
66101
}
67102
}

0 commit comments

Comments
 (0)