From b740dcad1d77e50afdb187b339bc9946962931d7 Mon Sep 17 00:00:00 2001 From: Fabian Michael Date: Mon, 18 Mar 2024 18:25:05 +0100 Subject: [PATCH] use composer autoloader for helpers.php - allows static code analysis tools to recognize this file --- composer.json | 5 ++++- index.php | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index de5d695..24d0e95 100755 --- a/composer.json +++ b/composer.json @@ -25,7 +25,10 @@ "autoload": { "psr-4": { "FabianMichael\\TemplateAttributes\\": "src/" - } + }, + "files": [ + "helpers.php" + ] }, "config": { "optimize-autoloader": true, diff --git a/index.php b/index.php index ff38326..d300f57 100755 --- a/index.php +++ b/index.php @@ -3,6 +3,5 @@ use Kirby\Cms\App; @include_once __DIR__ . '/vendor/autoload.php'; -require_once __DIR__ . '/helpers.php'; App::plugin('fabianmichael/template-attributes', []);