Skip to content

Commit

Permalink
perf(autoloader): Use Composer's authoritative classmap
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Jan 20, 2023
1 parent 177072b commit 0eb41dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
"platform": {
"php": "8.0"
},
"sort-packages": true
"sort-packages": true,
"optimize-autoloader": true,
"classmap-authoritative": true,
"autoloader-suffix": "Calendar"
},
"autoload": {
"psr-4": {
"OCA\\Calendar\\": "lib/"
}
},
"require": {
"php": ">=8.0 <=8.2"
Expand Down
5 changes: 5 additions & 0 deletions composer/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

declare(strict_types=1);

require_once __DIR__ . '/../vendor/autoload.php';

0 comments on commit 0eb41dc

Please sign in to comment.