<?php

load([
  "ProjectPage" => "models/ProjectPage.php",
], __DIR__);

F::loadClasses([
  // 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",
]);


Kirby::plugin("adrienpayet/pdc-notifications", [
  "routes" => [
    require(__DIR__ . "/routes/readAll.php"),
    require(__DIR__ . "/routes/read.php")
  ],
]);
