<?php
use function DI\get;
use Psr\Container\ContainerInterface;

return [
    'Global.prefix' => 'global/',
    'twig.extensions.global' => [
        DI\get(Modules\Commande\TwigExtension\OutilCommandeExtension::class),
    ],
    'PDO.oxasql.withoutODBC' => function (ContainerInterface $c) {
        return new \PDO(
            "sqlsrv:server=" . $c->get('database.hostSQL') . ";database=" . $c->get('database.nameSQL'),
            $c->get('database.usernameSQL'),
            $c->get('database.passwordSQL')
        );
    },
];
