From 7943e5705485447fc48bb684f88d4a24ae45ccf1 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 20 Sep 2017 12:46:57 +0200 Subject: [PATCH] Fixed composer autoloader + autolader.php --- autoloader.php | 4 ++-- composer.json | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/autoloader.php b/autoloader.php index ead9942..1a64abc 100755 --- a/autoloader.php +++ b/autoloader.php @@ -102,8 +102,8 @@ } - // On definit l'autoloader comme autoloader (obvious) - spl_autoload_register('autoloader', false, true); + // // On definit l'autoloader comme autoloader (obvious) + // spl_autoload_register('autoloader', false, true); diff --git a/composer.json b/composer.json index 6bcfeba..c367efd 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,18 @@ "phpro/grumphp": "^0.11.5", "jakub-onderka/php-parallel-lint": "^0.9.2", "phpunit/phpunit": "^6.1", - "crysalead/kahlan": "^2.5" + "kahlan/kahlan": "^3.1" }, "autoload": { + "psr-4": { + "api\\": "build/api", + "database\\": "build/database", + "error\\": "build/error", + "http\\": "build/http", + "orm\\": "build/orm", + "router\\": "build/router", + "viewer\\": "build/viewer" + }, "files": ["autoloader.php", "lib/vendor/autoload.php"] } }