Skip to content

Commit

Permalink
Merge pull request #5 from fabianmichael/better-autoloading
Browse files Browse the repository at this point in the history
use composer autoloader for helpers.php
  • Loading branch information
fabianmichael authored Mar 18, 2024
2 parents 1b8bbd4 + b740dca commit c0bb8db
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 c0bb8db

Please sign in to comment.