summaryrefslogtreecommitdiff
path: root/app/common.php
blob: bd336d924700470ced90546e472d5dc6e07333ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

require 'vendor/autoload.php';

// Include custom config file
if (file_exists('config.php')) {
    require 'config.php';
}

require __DIR__.'/constants.php';

$container = new Pimple\Container;
$container->register(new ServiceProvider\LoggingProvider);
$container->register(new ServiceProvider\DatabaseProvider);
$container->register(new ServiceProvider\ClassProvider);
$container->register(new ServiceProvider\EventDispatcherProvider);
$container->register(new ServiceProvider\MailerProvider);