Skip to content

Commit 9b0d264

Browse files
author
Roman Gsponer
committed
Fix class loader and composer path
1 parent 255bba8 commit 9b0d264

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ With the integrated mailview field you can display requests allover the panel.
7575

7676
**With Composer**
7777

78-
`composer require getplain/kirby-form-block-suite`
78+
`composer require plain/kirby-form-block-suite`
7979

8080
**Get a license**
8181

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "plain/kirby-form-block-suite",
33
"description": "Contactform based on Kirby blocks.",
44
"type": "kirby-plugin",
5-
"version": "5.0.2",
5+
"version": "5.0.3",
66
"license": "GPL-3.0-only",
77
"homepage": "https://plain-solutions.net/801346",
88
"authors": [

utils/load.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
2-
if (!class_exists('Plain\Helpers\Plugin')) {
3-
require_once __DIR__ . '/Plugin.php';
4-
require_once __DIR__ . '/Autoloader.php';
5-
require_once __DIR__ . '/License.php';
6-
}
2+
use Kirby\Filesystem\F;
3+
4+
F::loadClasses([
5+
'Plain\Helpers\Plugin' => __DIR__ . '/Plugin.php',
6+
'Plain\Helpers\Autoloader' => __DIR__ . '/Autoloader.php',
7+
'Plain\Helpers\License' => __DIR__ . '/License.php'
8+
]);

0 commit comments

Comments
 (0)