Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
a37e9eb
Initial dependency upgrade
gothick Feb 6, 2026
c09df30
Fix up user repository to comply with more strict PHPStan warnings
gothick Feb 6, 2026
145e28d
All tests passing
gothick Feb 7, 2026
10d6f25
PHPUnit working in every environment, using the latest schema for PHP…
gothick Feb 7, 2026
716ce32
Fix problem with use of getDoctrine()
gothick Feb 7, 2026
d42bc8a
Remove obsolete sensio bundle to avoid deprecations
gothick Feb 7, 2026
5e6aa9d
Bring Commands in line with modern annotations and function
gothick Feb 7, 2026
075514e
Bring form types into line with current function signatures
gothick Feb 7, 2026
edeceb7
Remove reset_on_message config from Messenger; it's the default behav…
gothick Feb 7, 2026
91753de
Move MessageHandlers to new attribution style
gothick Feb 7, 2026
e7cd65e
Remove obsolete enable_authenticator_manager setting; it defaults to …
gothick Feb 7, 2026
c20349c
Fix typo in import leading to message handler not being registered
gothick Feb 8, 2026
379fd08
Remove deprecation
gothick Feb 8, 2026
e2c5a1c
Move StatsCacheClearer to use Attributes to register as a listener ra…
gothick Feb 8, 2026
dd8aeba
Upgrade some doctrine-related things
gothick Feb 8, 2026
7b52d48
Turn off a Doctrine setting that will default to false in future anyw…
gothick Feb 8, 2026
4591b30
Upgrade LiipTestFixtures bundle
gothick Feb 8, 2026
9680540
Add Clear All Caches target to Makefile
gothick Feb 8, 2026
f8a9c1f
Force new default config value in Doctrine to avoid configuration war…
gothick Feb 8, 2026
60949ac
Update composer deps
gothick Feb 8, 2026
06221ca
Use bindValue() rather than passing parameters to executeQuery() dire…
gothick Feb 8, 2026
86c85fd
Add helper file for Rector
gothick Feb 8, 2026
5ec8443
(Mostly) automated PHP 8.3 Rector updates, reviewed.
gothick Feb 8, 2026
41047ca
Punch Rector up to Symfony 6.4.
gothick Feb 8, 2026
1476847
Import Attributes instead of Annotations, bringing all Controllers up…
gothick Feb 8, 2026
51accc1
Rector improvements
gothick Feb 9, 2026
d13a373
Add bugfix: shouldn't be able to add multiple identical tags to an Image
gothick Feb 9, 2026
afe2f81
Update my vscode settings for PHP debugging
gothick Feb 9, 2026
f35c6e9
Update Beelab tagging dep
gothick Feb 9, 2026
b1ac8ab
Update tag extension
gothick Feb 9, 2026
2f5d3e9
Updated recipes
gothick Feb 9, 2026
c521ba7
Update Doctrine based on Flex recipe
gothick Feb 9, 2026
be103e6
Update various recipes
gothick Feb 9, 2026
74d667b
Update Flex recipe
gothick Feb 9, 2026
45e5ff3
Update framework-bundle recipe
gothick Feb 9, 2026
4958e9b
Update messenger recipe
gothick Feb 9, 2026
7dc7a63
Updated with PHPUnit recipe changes
gothick Feb 9, 2026
bf6eeff
Update routing recipes
gothick Feb 9, 2026
663d943
Update security-bundle recipes
gothick Feb 9, 2026
360b4b4
Updated stimulus bundle recipes
gothick Feb 9, 2026
d053d7c
Run translation recipe updates
gothick Feb 9, 2026
5baecee
Update with Twig recipe changes
gothick Feb 9, 2026
d90f49a
Update recipes from web profiler
gothick Feb 9, 2026
3ef484e
Fool with Yarn for too long after updating webpack-encore recipe
gothick Feb 9, 2026
fcb0990
Rector config update
gothick Feb 9, 2026
5581d6f
First tranche of Rector upgrades, mostly annotations to attributes fo…
gothick Feb 10, 2026
e7c75ff
Rector dead-code removal
gothick Feb 10, 2026
bf72e30
Rector updates; mostly changing Controllers to pick up container obje…
gothick Feb 10, 2026
23f25bc
Rector Doctrine changes, mostly updating string type specifiers like …
gothick Feb 10, 2026
e770a10
Plenty of code quality improvemnts from Rector
gothick Feb 10, 2026
c815769
Whole lot of whitespace improvements from Rector. Not sure if I'll li…
gothick Feb 10, 2026
10e4201
Some Carbon updates from Rector
gothick Feb 10, 2026
6b9a31f
Fixup PHPUnit code quality. (Thanks, Rector)
gothick Feb 10, 2026
aaa8a5c
Update composer deps after moving BeeLab TagBundle back to point at m…
gothick Feb 10, 2026
16aa90b
Add deprecation warnings back to dockerised version
gothick Feb 10, 2026
b427706
Fix up DB URL for docker test environment
gothick Feb 10, 2026
f1024bc
Update Yarn deps
gothick Feb 10, 2026
9fe553e
Remove old BypassFinalHook reference from phpunit.xml.dev; we bootstr…
gothick Feb 10, 2026
c836438
Remove duplicate encore entry point from base template
gothick Feb 10, 2026
f5bfcc1
Fix end date handling on filter form
gothick Feb 10, 2026
f934377
Remove app secret added by recipe for some stupid reason. We have a d…
gothick Feb 10, 2026
69d9386
Use require_once to make SonarCloud happy, even though this code was …
gothick Feb 10, 2026
6844258
Remove extraneous bootstrap from app.ja
gothick Feb 10, 2026
c54b86c
return doesn't need brackets
gothick Feb 10, 2026
a0cd277
Extraneous whitespace removal
gothick Feb 10, 2026
5e372c3
Use lower-case for 'extends' keyword
gothick Feb 10, 2026
f0fee49
Add Sonar config
gothick Feb 11, 2026
ae20f20
Update sonarqube to ignore duplicated code in e.g. DataFixtures, wher…
gothick Feb 11, 2026
8281ffe
Update sonarqube to ignore duplicated code in e.g. DataFixtures, wher…
gothick Feb 11, 2026
3fd0c38
Exclude data directory from SonarQube; it's not code.
gothick Feb 11, 2026
afc8ea8
Desperately try to get sodding SonarQube to do anything useful in res…
gothick Feb 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$.ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
Expand All @@ -20,7 +20,6 @@ MAPBOX_ACCESS_TOKEN="It's not stored here, but it's not like that's providing mu
APP_ENV=dev
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
#TRUSTED_HOSTS='^(localhost|example\.com)$'

###< symfony/framework-bundle ###

###> symfony/mailer ###
Expand All @@ -32,7 +31,8 @@ MAILER_DSN=null://null
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###

Expand Down Expand Up @@ -82,9 +82,3 @@ MAILER_DSN=sendmail://default
SECURE_SCHEME=https

REDIS_URL=redis://localhost:6379

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=redis://localhost:6379
###< symfony/lock ###
42 changes: 33 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,45 @@
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"name": "Listen for XDebug",
// "pathMappings": {
// "/home/vagrant/code": "${workspaceFolder}",
// },
"port": 9003,
"log": true,
"log": true
},
{
"type": "pwa-chrome",
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://omm.gothick.org.uk.local",
"webRoot": "${workspaceFolder}"
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:0"
],
"program": "",
"cwd": "${workspaceRoot}",
"port": 9003,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ sf: ## List all Symfony commands
cc: ## Clear the cache. DID YOU CLEAR YOUR CACHE????
@$(CONSOLE) cache:clear

cac: ## Clear ALL caches
@$(CONSOLE) cache:pool:clear --all

warmup: ## Warmup the cache
@$(CONSOLE) cache:warmup

Expand Down Expand Up @@ -64,6 +67,9 @@ test:
testapp:
$(DOCKER_COMP) -f docker-compose.yml -f docker-compose.app.yml exec -u www-data app php -dxdebug.mode=coverage bin/phpunit --cache-directory /tmp/phpunitcache --testdox

shellapp:
$(DOCKER_COMP) -f docker-compose.yml -f docker-compose.app.yml exec app bash

# We're going to be doing this a lot for a while...
testtags:
$(PHPUNIT) --group tags
Expand Down
21 changes: 1 addition & 20 deletions bin/phpunit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
#!/usr/bin/env php
<?php

if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}

if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
if (PHP_VERSION_ID >= 80000) {
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
} else {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
}
} else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}

require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
}
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
98 changes: 51 additions & 47 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@
"type": "project",
"license": "proprietary",
"repositories": [
{
{
"type": "vcs",
"url": "https://github.com/gothick/geotools"
},
{
"type": "vcs",
"url": "https://github.com/gothick/geolocation-php-api"
},
{
"type": "vcs",
"url": "https://github.com/gothick/BeelabTagBundle"
}
],
"require": {
"php": ">=8.3.0",
"ext-ctype": "*",
"ext-iconv": "*",
"beelab/tag-bundle": "dev-master",
"beelab/tag-bundle": "2.x-dev",
"composer/package-versions-deprecated": "^1.11",
"doctrine/doctrine-bundle": "^2.11",
"doctrine/doctrine-migrations-bundle": "^3.0",
Expand All @@ -38,48 +42,48 @@
"nesbot/carbon": "^2.42",
"phpdocumentor/reflection-docblock": "^5.2",
"predis/predis": "^3.3",
"sensio/framework-extra-bundle": "^6.2",
"sibyx/phpgpx": "@RC",
"spatie/guzzle-rate-limiter-middleware": "^2.0",
"symfony/flex": "^2.10",
"symfony/apache-pack": "^1.0",
"symfony/asset": "5.4.*",
"symfony/beanstalkd-messenger": "5.4.*",
"symfony/browser-kit": "^5.4",
"symfony/console": "5.4.*",
"symfony/css-selector": "^5.4",
"symfony/debug-bundle": "^5.4",
"symfony/doctrine-messenger": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/expression-language": "5.4.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.4.*",
"symfony/framework-bundle": "5.4.*",
"symfony/http-client": "5.4.*",
"symfony/intl": "5.4.*",
"symfony/mailer": "5.4.*",
"symfony/messenger": "5.4.*",
"symfony/mime": "5.4.*",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "5.4.*",
"symfony/process": "5.4.*",
"symfony/property-access": "5.4.*",
"symfony/property-info": "5.4.*",
"symfony/proxy-manager-bridge": "5.4.*",
"symfony/rate-limiter": "5.4.*",
"symfony/runtime": "5.4.*",
"symfony/security-bundle": "5.4.*",
"symfony/serializer": "5.4.*",
"symfony/stopwatch": "^5.4",
"symfony/string": "5.4.*",
"symfony/translation": "5.4.*",
"symfony/twig-bundle": "^5.4",
"symfony/ux-chartjs": "^2.0",
"symfony/validator": "5.4.*",
"symfony/var-dumper": "^5.4",
"symfony/web-link": "5.4.*",
"symfony/web-profiler-bundle": "^5.4",
"symfony/webpack-encore-bundle": "^1.12",
"symfony/yaml": "5.4.*",
"symfony/monolog-bundle": "^3.11",
"symfony/ux-chartjs": "^2.32",
"symfony/webpack-encore-bundle": "^2.4",

"symfony/asset": "6.4.*",
"symfony/beanstalkd-messenger": "6.4.*",
"symfony/browser-kit": "6.4.*",
"symfony/console": "6.4.*",
"symfony/css-selector": "6.4.*",
"symfony/debug-bundle": "6.4.*",
"symfony/doctrine-messenger": "6.4.*",
"symfony/dotenv": "6.4.*",
"symfony/expression-language": "6.4.*",
"symfony/form": "6.4.*",
"symfony/framework-bundle": "6.4.*",
"symfony/http-client": "6.4.*",
"symfony/intl": "6.4.*",
"symfony/mailer": "6.4.*",
"symfony/messenger": "6.4.*",
"symfony/mime": "6.4.*",
"symfony/notifier": "6.4.*",
"symfony/process": "6.4.*",
"symfony/property-access": "6.4.*",
"symfony/property-info": "6.4.*",
"symfony/proxy-manager-bridge": "6.4.*",
"symfony/rate-limiter": "6.4.*",
"symfony/runtime": "6.4.*",
"symfony/security-bundle": "6.4.*",
"symfony/serializer": "6.4.*",
"symfony/stopwatch": "6.4.*",
"symfony/string": "6.4.*",
"symfony/translation": "6.4.*",
"symfony/twig-bundle": "6.4.*",
"symfony/validator": "6.4.*",
"symfony/var-dumper": "6.4.*",
"symfony/web-link": "6.4.*",
"symfony/web-profiler-bundle": "6.4.*",
"symfony/yaml": "6.4.*",
"twig/extra-bundle": "^3.4",
"twig/intl-extra": "^3.1",
"twig/markdown-extra": "^3.4",
Expand All @@ -91,13 +95,13 @@
"dama/doctrine-test-bundle": "^8.2",
"deployer/deployer": "^7.1",
"dg/bypass-finals": "^1.9",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"liip/test-fixtures-bundle": "^2.0.0-alpha1",
"doctrine/doctrine-fixtures-bundle": "^4.3",
"liip/test-fixtures-bundle": "^3.1.0",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^12.5",
"rector/rector": "^2.3",
"symfony/maker-bundle": "^1.23",
"symfony/phpunit-bridge": "^5.4"
"symfony/maker-bundle": "^1.65",
"symfony/phpunit-bridge": "^6.4"
},
"config": {
"optimize-autoloader": true,
Expand Down Expand Up @@ -148,7 +152,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.4.*"
"require": "6.4.*"
}
}
}
Loading