Skip to content

Commit 8616904

Browse files
author
=
committed
Add webapp packages
1 parent 9b752c6 commit 8616904

31 files changed

+9218
-1197
lines changed

.env

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

.env.test

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

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

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

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,41 @@
77
"php": ">=8.1",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
10+
"doctrine/annotations": "^1.0",
11+
"doctrine/doctrine-bundle": "^2.8",
12+
"doctrine/doctrine-migrations-bundle": "^3.2",
13+
"doctrine/orm": "^2.14",
14+
"phpdocumentor/reflection-docblock": "^5.3",
15+
"phpstan/phpdoc-parser": "^1.15",
16+
"sensio/framework-extra-bundle": "^6.1",
17+
"symfony/asset": "6.2.*",
1018
"symfony/console": "6.2.*",
19+
"symfony/doctrine-messenger": "6.2.*",
1120
"symfony/dotenv": "6.2.*",
21+
"symfony/expression-language": "6.2.*",
1222
"symfony/flex": "^2",
23+
"symfony/form": "6.2.*",
1324
"symfony/framework-bundle": "6.2.*",
25+
"symfony/http-client": "6.2.*",
26+
"symfony/intl": "6.2.*",
27+
"symfony/mailer": "6.2.*",
28+
"symfony/mime": "6.2.*",
29+
"symfony/monolog-bundle": "^3.0",
30+
"symfony/notifier": "6.2.*",
31+
"symfony/process": "6.2.*",
32+
"symfony/property-access": "6.2.*",
33+
"symfony/property-info": "6.2.*",
1434
"symfony/runtime": "6.2.*",
15-
"symfony/yaml": "6.2.*"
16-
},
17-
"require-dev": {
35+
"symfony/security-bundle": "6.2.*",
36+
"symfony/serializer": "6.2.*",
37+
"symfony/string": "6.2.*",
38+
"symfony/translation": "6.2.*",
39+
"symfony/twig-bundle": "6.2.*",
40+
"symfony/validator": "6.2.*",
41+
"symfony/web-link": "6.2.*",
42+
"symfony/yaml": "6.2.*",
43+
"twig/extra-bundle": "^2.12|^3.0",
44+
"twig/twig": "^2.12|^3.0"
1845
},
1946
"config": {
2047
"allow-plugins": {
@@ -62,5 +89,15 @@
6289
"allow-contrib": false,
6390
"require": "6.2.*"
6491
}
92+
},
93+
"require-dev": {
94+
"phpunit/phpunit": "^9.5",
95+
"symfony/browser-kit": "6.2.*",
96+
"symfony/css-selector": "6.2.*",
97+
"symfony/debug-bundle": "6.2.*",
98+
"symfony/maker-bundle": "^1.0",
99+
"symfony/phpunit-bridge": "^6.2",
100+
"symfony/stopwatch": "6.2.*",
101+
"symfony/web-profiler-bundle": "6.2.*"
65102
}
66103
}

0 commit comments

Comments
 (0)