Dave Mc Nicoll 01bb926ca7 - Added a new Email defintion (which will soon see it's components changed)
- Added a new post-install script for composer which adds a project skeleton "ready to use".
- Error 500 are now handled properly in production; waiting to see if adjustements will be required before adding other code pages.
2021-03-01 16:01:27 +00:00

26 lines
548 B
PHP

<?php
use Psr\Container\ContainerInterface;
use Ulmus\ConnectionAdapter,
Ulmus\Container\AdapterProxy;
use LdapRecord\Connection;
return [
ConnectionAdapter::class => function($c) {
$adapter = new ConnectionAdapter('default', $c->get('config')['ulmus'], true);
$adapter->resolveConfiguration();
$adapter->connect();
return $adapter;
},
AdapterProxy::class => function (ContainerInterface $c) {
return new AdapterProxy(
$c->get(ConnectionAdapter::class)
);
}
];