From 01354e494756cf5365566c54758419c214f46fc0 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Fri, 30 Jul 2021 01:16:33 +0200 Subject: [PATCH] switch PSR-0 -> PSR-4 PSR-0 is deprecated per https://www.php-fig.org/psr/psr-0/ notably PSR-4 allows us to remove the entire Bramus folder and put the router in src/Router/Router.php while PSR-0 did not allow us to do that, but whether or not that should be done, idk, this is just the minimum changes needed to use PSR-4. --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 4777f4f..96d54c6 100644 --- a/composer.json +++ b/composer.json @@ -21,11 +21,11 @@ "friendsofphp/php-cs-fixer": "~2.14" }, "autoload": { - "psr-0": {"Bramus": "src/"} + "psr-4": {"Bramus\\": "src/Bramus/"} }, "scripts": { "test": "./vendor/bin/phpunit --colors=always", "lint": "php-cs-fixer fix --diff --dry-run", "fix": "php-cs-fixer fix" } -} \ No newline at end of file +}