nettsiden/inc/agenda.php

12 lines
353 B
PHP
Raw Permalink Normal View History

<?php
require __DIR__ . '/../src/_autoload.php';
2024-02-15 22:57:03 +01:00
require __DIR__ . '/../config.php';
2024-03-12 19:33:09 +01:00
$pdo = new \PDO($DB_DSN, $DB_USER, $DB_PASS);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$agenda = new \pvv\side\Agenda([
new \pvv\side\social\NerdepitsaActivity,
new \pvv\side\social\AnimekveldActivity,
new \pvv\side\DBActivity($pdo),
]);