Skip to content

Commit

Permalink
use composer autoloader for helpers.php
Browse files Browse the repository at this point in the history
- allows static code analysis tools to recognize this file
  • Loading branch information
fabianmichael committed Mar 18, 2024
1 parent 1b8bbd4 commit b740dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"autoload": {
"psr-4": {
"FabianMichael\\TemplateAttributes\\": "src/"
}
},
"files": [
"helpers.php"
]
},
"config": {
"optimize-autoloader": true,
Expand Down
1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
use Kirby\Cms\App;

@include_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/helpers.php';

App::plugin('fabianmichael/template-attributes', []);

0 comments on commit b740dca

Please sign in to comment.