Skip to content

Commit ba49035

Browse files
authored
Refactor configurations and update dependencies (#8)
Updated Symfony configurations and switched to the `http_discovery` library for PSR-17 factories. Modified PayPal integration logic to handle checkout state checks. Added cron job for coupon generation and upgraded dependencies, including Symfony, Doctrine, and PHPUnit versions.
1 parent 4d69f41 commit ba49035

File tree

12 files changed

+472
-570
lines changed

12 files changed

+472
-570
lines changed

.env.dev

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
###> symfony/framework-bundle ###
2+
APP_SECRET=2730dd957afe171b7361268a5e9dee37
3+
###< symfony/framework-bundle ###

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea/
2+
/public/assets/
23
/public/media/
34
/**/.DS_Store
45
/**/Thumbs.db

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SYMFONY = $(PHP) bin/console
2626

2727
# Misc
2828
.DEFAULT_GOAL = help
29-
.PHONY : help build up down start restart logs sh bash test composer vendor sf cc setup load_samples build_assets
29+
.PHONY : help build up down start restart logs sh bash test composer vendor sf cc setup load_samples build_assets generate_configs
3030

3131
## —— 🎵 🐳 The Symfony Docker Makefile 🐳 🎵 ——————————————————————————————————
3232
help: ## Outputs this help screen
@@ -83,6 +83,7 @@ setup: ## Launching project by environment
8383
make start
8484
make load_samples
8585
make build_assets
86+
make generate_configs
8687

8788
load_samples: ## Filling the database with dummy data
8889
ifeq ($(PROJECT_MODE), prod)
@@ -99,3 +100,6 @@ else
99100
@$(NPM) ci
100101
@$(NPM) run dev
101102
endif
103+
104+
generate_configs: ## Generate configs for application operation
105+
make sf c='lexik:jwt:generate-keypair --no-interaction --overwrite'

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,31 @@
1818
}
1919
],
2020
"require": {
21-
"php": ">=8.3.6",
21+
"php": "^8.3",
2222
"ext-ctype": "*",
23+
"ext-exif": "*",
24+
"ext-gd": "*",
2325
"ext-iconv": "*",
24-
"dragonmantank/cron-expression": "^3.3",
26+
"dragonmantank/cron-expression": "^3.4",
2527
"runtime/frankenphp-symfony": "^0.2.0",
2628
"sylius/paypal-plugin": "^1.7",
2729
"sylius/sylius": "^1.14",
2830
"symfony/console": "6.4.*",
2931
"symfony/dotenv": "6.4.*",
3032
"symfony/flex": "^2",
3133
"symfony/framework-bundle": "6.4.*",
34+
"symfony/monolog-bundle": "^3.0",
3235
"symfony/runtime": "6.4.*",
3336
"symfony/scheduler": "6.4.*",
3437
"symfony/yaml": "6.4.*"
3538
},
3639
"require-dev": {
37-
"phpunit/phpunit": "^11.1",
40+
"phpunit/phpunit": "^12.0",
3841
"symfony/browser-kit": "6.4.*",
3942
"symfony/css-selector": "6.4.*",
4043
"symfony/debug-bundle": "6.4.*",
41-
"symfony/maker-bundle": "^1.59",
42-
"symfony/monolog-bundle": "^3.0",
43-
"symfony/phpunit-bridge": "^7.0",
44+
"symfony/maker-bundle": "^1.62",
45+
"symfony/phpunit-bridge": "^7.2",
4446
"symfony/stopwatch": "6.4.*",
4547
"symfony/web-profiler-bundle": "6.4.*"
4648
},

0 commit comments

Comments
 (0)