Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6eb81cf6a6
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (38 sloc) 1.664 kB
<?php
$app['debug'] = true;
$app->register(new Silex\Provider\SessionServiceProvider());
$app->register(new Silex\Provider\TwigServiceProvider(), array(
'twig.path' => __DIR__ . '/../app/Views',
'twig.class_path' => __DIR__ . '/../vendor/Twig/lib',
'twig.options' => array('cache' => __DIR__ . '/../data/cache/twig')
));
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
'db.options' => array(
'driver' => 'pdo_mysql',
'host' => '10.120.31.21',
'dbname' => 'ehutson',
'user' => 'root',
'password' => ''
),
'db.dbal.class_path' => __DIR__ . '/../vendor/doctrine2/lib/vendor/doctrine-dbal/lib',
'db.common.class_path' => __DIR__ . '/../vendor/doctrine2/lib/vendor/doctrine-common/lib',
));
$app['autoloader']->registerNamespace('Nutwerk', __DIR__ . '/../vendor/nutwerk-orm-extension/lib');
$app->register(new Nutwerk\Provider\DoctrineORMServiceProvider(), array(
'db.orm.class_path' => __DIR__ . '/../vendor/doctrine2/lib',
'db.orm.proxies_dir' => __DIR__ . '/../data/cache/doctrine/Proxies',
'db.orm.proxies_namespace' => 'Proxies',
'db.orm.auto_generate_proxies' => true,
'db.orm.entities' => array(array(
'type' => 'annotation',
'path' => __DIR__ . '/../app',
'namespace' => 'Entity',
)),
));
$app['autoloader']->registerNamespace('Auth', __DIR__ . '/../vendor/Auth/lib');
$app->register(new Auth\Provider\AuthServiceProvider(), array(
'auth.adapterName' => 'DoctrineAdapter',
'auth.entityName' => '\Entity\User',
'auth.column.username' => 'username',
'auth.column.password' => 'password'
));
Jump to Line
Something went wrong with that request. Please try again.