blob: 45169d70cdf192ffdecfb95f650023252275ce81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
// Common file between cli and web interface
require 'vendor/autoload.php';
require __DIR__.'/functions.php';
require __DIR__.'/helpers.php';
// Include custom config file
if (file_exists('config.php')) {
require 'config.php';
}
require __DIR__.'/constants.php';
$registry = new Core\Registry;
$registry->db = setup_db();
$registry->event = setup_events();
$registry->mailer = function() { return setup_mailer(); };
|