perf(autoloader): Use Composer's authoritative classmap
And stop server from doing the autoloading for us. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
abba0155b8
Коммит
1e28bc60db
|
@ -6,7 +6,10 @@
|
|||
"sort-packages": true,
|
||||
"allow-plugins": {
|
||||
"bamarni/composer-bin-plugin": true
|
||||
}
|
||||
},
|
||||
"optimize-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Mail"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.0 <=8.1",
|
||||
|
@ -46,7 +49,10 @@
|
|||
"autoload": {
|
||||
"files": [
|
||||
"lib/functions.php"
|
||||
]
|
||||
],
|
||||
"psr-4": {
|
||||
"OCA\\Mail\\": "lib/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
Загрузка…
Ссылка в новой задаче