2024-10-29 11:35:48 +01:00
|
|
|
<?php
|
|
|
|
|
|
2024-11-22 07:53:43 +01:00
|
|
|
load([
|
2025-01-10 15:38:57 +01:00
|
|
|
"ProjectPage" => "models/ProjectPage.php",
|
2024-11-22 07:53:43 +01:00
|
|
|
], __DIR__);
|
|
|
|
|
|
2024-12-18 13:56:21 +01:00
|
|
|
F::loadClasses([
|
2025-01-10 15:38:57 +01:00
|
|
|
// Own classes
|
|
|
|
|
"adrienpayet\\notifications\\Notification" => __DIR__ . "/src/Notification.php",
|
|
|
|
|
"adrienpayet\\notifications\\NotificationsPage" => __DIR__ . "/src/NotificationsPage.php",
|
|
|
|
|
|
|
|
|
|
// Shared classes
|
|
|
|
|
"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",
|
2024-12-18 13:56:21 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
2025-01-10 15:38:57 +01:00
|
|
|
Kirby::plugin("adrienpayet/pdc-notifications", [
|
|
|
|
|
"routes" => [
|
|
|
|
|
require(__DIR__ . "/routes/readAll.php"),
|
|
|
|
|
require(__DIR__ . "/routes/read.php")
|
2024-11-18 13:45:40 +01:00
|
|
|
],
|
2024-10-29 11:35:48 +01:00
|
|
|
]);
|