create comment classes

This commit is contained in:
isUnknown 2024-10-30 09:49:16 +01:00
parent cd1f065962
commit f5ffe312e2
8 changed files with 246 additions and 63 deletions

View file

@ -1,6 +1,12 @@
<?php
Kirby::plugin('adrienpayet/pdc-comments', [
F::loadClasses([
'adrienpayet\\comments\\BaseComment' => __DIR__ . '/src/BaseComment.php',
'adrienpayet\\comments\\Comment' => __DIR__ . '/src/Comment.php',
'adrienpayet\\comments\\Reply' => __DIR__ . '/src/Reply.php'
]);
Kirby::plugin('adrienpayet/kirby4-comments', [
'routes' => [
require(__DIR__ . '/routes/create.php'),
require(__DIR__ . '/routes/update.php'),