Skip to content

Commit 1922ba3

Browse files
committed
initial set of dependencies
1 parent 2fcadbb commit 1922ba3

28 files changed

+6791
-1289
lines changed

.env

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

.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

+14
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,17 @@
88
/var/
99
/vendor/
1010
###< symfony/framework-bundle ###
11+
12+
###> php-cs-fixer/shim ###
13+
/.php-cs-fixer.php
14+
/.php-cs-fixer.cache
15+
###< php-cs-fixer/shim ###
16+
17+
###> phpstan/phpstan ###
18+
phpstan.neon
19+
###< phpstan/phpstan ###
20+
21+
###> phpunit/phpunit ###
22+
/phpunit.xml
23+
.phpunit.result.cache
24+
###< phpunit/phpunit ###

.php-cs-fixer.dist.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__)
5+
->exclude('var')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@Symfony' => true,
11+
])
12+
->setFinder($finder)
13+
;

.php-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.2

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SymfonyCon Bot 2023
2+
===================
3+
4+
Chatbot for SymfonyCon 2023

compose.override.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3'
2+
3+
services:
4+
###> doctrine/doctrine-bundle ###
5+
database:
6+
ports:
7+
- "5432"
8+
###< doctrine/doctrine-bundle ###

compose.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '3'
2+
3+
services:
4+
###> doctrine/doctrine-bundle ###
5+
database:
6+
image: postgres:${POSTGRES_VERSION:-15}-alpine
7+
environment:
8+
POSTGRES_DB: ${POSTGRES_DB:-app}
9+
# You should definitely change the password in production
10+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
11+
POSTGRES_USER: ${POSTGRES_USER:-app}
12+
volumes:
13+
- database_data:/var/lib/postgresql/data:rw
14+
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
15+
# - ./docker/db/data:/var/lib/postgresql/data:rw
16+
###< doctrine/doctrine-bundle ###
17+
18+
volumes:
19+
###> doctrine/doctrine-bundle ###
20+
database_data:
21+
###< doctrine/doctrine-bundle ###

composer.json

+28-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,40 @@
11
{
2+
"name": "stoffel/symfonycon-bot-2023",
3+
"description": "Chatbot for SymfonyCon 2023 with Telegram integration",
24
"type": "project",
35
"license": "proprietary",
46
"minimum-stability": "dev",
57
"prefer-stable": true,
68
"require": {
7-
"php": ">=8.1",
9+
"php": ">=8.2",
810
"ext-ctype": "*",
911
"ext-iconv": "*",
10-
"symfony/console": "6.4.*",
11-
"symfony/dotenv": "6.4.*",
12-
"symfony/flex": "^2",
13-
"symfony/framework-bundle": "6.4.*",
14-
"symfony/runtime": "6.4.*",
15-
"symfony/yaml": "6.4.*"
12+
"doctrine/doctrine-bundle": "^2.11",
13+
"doctrine/doctrine-migrations-bundle": "^3.3",
14+
"doctrine/orm": "^2.17",
15+
"phpdocumentor/reflection-docblock": "^5.3",
16+
"phpstan/phpdoc-parser": "^1.24",
17+
"symfony/console": "^7.0",
18+
"symfony/dotenv": "^7.0",
19+
"symfony/flex": "^2.4",
20+
"symfony/framework-bundle": "^7.0",
21+
"symfony/http-client": "7.0.*",
22+
"symfony/messenger": "7.0.*",
23+
"symfony/property-access": "7.0.*",
24+
"symfony/property-info": "7.0.*",
25+
"symfony/runtime": "^7.0",
26+
"symfony/serializer": "7.0.*",
27+
"symfony/webhook": "7.0.*",
28+
"symfony/yaml": "^7.0"
1629
},
1730
"require-dev": {
31+
"php-cs-fixer/shim": "^3.39",
32+
"phpstan/phpstan": "^1.10",
33+
"phpunit/phpunit": "^10.4",
34+
"symfony/debug-bundle": "7.0.*",
35+
"symfony/monolog-bundle": "^3.0",
36+
"symfony/stopwatch": "7.0.*",
37+
"symfony/web-profiler-bundle": "7.0.*"
1838
},
1939
"config": {
2040
"allow-plugins": {
@@ -61,7 +81,7 @@
6181
"extra": {
6282
"symfony": {
6383
"allow-contrib": false,
64-
"require": "6.4.*"
84+
"require": "7.0.*"
6585
}
6686
}
6787
}

0 commit comments

Comments
 (0)