29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
<?php
|
|
|
|
load([
|
|
'ProjectPage' => 'models/ProjectPage.php',
|
|
], __DIR__);
|
|
|
|
F::loadClasses([
|
|
'adrienpayet\\notifications\\Notification' => __DIR__ . '/src/Notification.php',
|
|
'adrienpayet\\D2P\\data\\Position' => __DIR__ . '/../classes/Position.php',
|
|
'adrienpayet\\D2P\data\Author' => __DIR__ . '/../classes/Author.php',
|
|
'adrienpayet\\D2P\\data\\location\\Location' => __DIR__ . '/../classes/location/Location.php',
|
|
'adrienpayet\\D2P\\data\\location\\PageDetails' => __DIR__ . '/../classes/location/PageDetails.php',
|
|
'adrienpayet\\D2P\\data\\location\\ProjectDetails' => __DIR__ . '/../classes/location/ProjectDetails.php',
|
|
'adrienpayet\\D2P\\data\\location\\FileDetails' => __DIR__ . '/../classes/location/FileDetails.php',
|
|
]);
|
|
|
|
|
|
Kirby::plugin('adrienpayet/pdc-notifications', [
|
|
'routes' => [
|
|
require(__DIR__ . '/routes/readAll.php'),
|
|
require(__DIR__ . '/routes/read.php')
|
|
],
|
|
'userMethods' => [
|
|
'sendNotification' => require(__DIR__ . '/user-methods/send.php'),
|
|
'deleteNotification' => require(__DIR__ . '/user-methods/delete.php'),
|
|
'readNotification' => require(__DIR__ . '/user-methods/read.php'),
|
|
'readAllNotifications' => require(__DIR__ . '/user-methods/readAll.php')
|
|
]
|
|
]);
|