diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-01-20 12:06:26 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-01-20 12:06:26 +0100 |
commit | 3ed7e017dbd72ebf6f3171fecfb489043945ff78 (patch) | |
tree | b00d80d0f20728ce4adaa935850011b61ed447d1 | |
parent | e64b25feeead7539e7b28580c87f10f673302226 (diff) |
perf(autoloader): Use Composer's authoritative classmap
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | composer.json | 6 | ||||
-rw-r--r-- | composer/autoload.php | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/composer.json b/composer.json index 7b4916bf..03a46914 100644 --- a/composer.json +++ b/composer.json @@ -5,6 +5,12 @@ "classmap-authoritative": true, "platform": { "php": "7.4" + }, + "autoloader-suffix": "Contacts" + }, + "autoload": { + "psr-4": { + "OCA\\Contacts\\": "lib/" } }, "scripts": { diff --git a/composer/autoload.php b/composer/autoload.php new file mode 100644 index 00000000..a075e1e8 --- /dev/null +++ b/composer/autoload.php @@ -0,0 +1,5 @@ +<?php + +declare(strict_types=1); + +require_once __DIR__ . '/../vendor/autoload.php'; |