-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap.php
24 lines (20 loc) · 1.13 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once __DIR__.'/vendor/silex.phar';
$app = new Silex\Application();
// AUTOLOADING
$app['autoloader']->registerNamespace('MarcW', array(__DIR__.'/vendor/marcw-buzz/lib', __DIR__.'/vendor/marcw-velib/lib'));
$app['autoloader']->registerNamespace('GHub', array(__DIR__.'/vendor'));
$app['autoloader']->registerNamespace('Model', __DIR__);
// EXTENSIONS
$app->register(new MarcW\BuzzExtension(), array('buzz.class_path' => __DIR__.'/vendor/buzz/lib'));
$app->register(new MarcW\VelibExtension(), array('velib.class_path' => __DIR__.'/vendor/velib/lib'));
$app->register(new Silex\Extension\HttpCacheExtension(), array('http_cache.cache_dir' => __DIR__.'/cache'));
$app->register(new Silex\Extension\TwigExtension(), array('twig.path' => __DIR__.'/views', 'twig.class_path' => __DIR__.'/vendor/twig/lib'));
$app->register(new Silex\Extension\UrlGeneratorExtension());
$app->register(
new GHub\PommExtension\PommExtension(),
array(
'pomm.class_path' => __DIR__.'/vendor/pomm',
'pomm.connections' => array(
'default' => array('dsn' => 'pgsql://greg/greg', 'class' => 'Model\Pomm\Database\VlibDb')))
);