<?php
namespace Claromentis\Core\DAL;

$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] ?: array()) + array("_c8d3d312ed2a825" . "f334270f7a684cc1" . "b" => base64_decode("ZGIud" . "HJhY2" . "U="), "con" . "fig" => base64_decode("Y29u" . "Zmln"), "_c621320e5b7d0" . "0b19b9d9ecac6e" . "e3dea" => base64_decode("ZGIuY29ub" . "mVjdGVk"), "d" . "b" => base64_decode("ZG" . "I="), "_942c5fe" . "ab28a69b" . "f7fc4740" . "2f8e7d81" . "e" => base64_decode("ZGIucXVlcnlfZmFjdG9yeQ=" . "="), "_f32d6b935627dc6df86eaee500c" . "40b63" => base64_decode("ZGIuZmFjdG" . "9yeQ=="));
use Claromentis\Core\Config\Config;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use Claromentis\Core\DAL;
class DbServiceProvider implements ServiceProviderInterface
{
    
    
    
    
    
    
    
    
    
    public function register(Container $app)
    {
        $app[$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["d" . "b"]] = function ($app) {
            
            
            
            
            
            $config = $app[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["con" . "fig"]];
            $factory = $app[DbFactory::class];
            
            
            
            
            
            
            
            
            
            
            global $db;
            $db = $factory->GetInstanceFromConfig($config);
            $db->trace = $app[$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_c8d3d312ed2a825" . "f334270f7a684cc1" . "b"]] ?? 0;
            $app[$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_c621320e5b7d" . "00b19b9d9ecac" . "6ee3dea"]] = true;
            return $db;
        };
        $app[$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_942c5fea" . "b28a69bf7" . "fc47402f8" . "e7d81e"]] = function ($app) {
            return $app[QueryFactory::class];
        };
        
        
        $app[DAL\Db::class] = $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["d" . "b"];
        $app[DAL\Interfaces\DbInterface::class] = $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["d" . "b"];
        $app[DAL\Interfaces\SchemaInterface::class] = $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["d" . "b"];
        $app[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_f32d6b935627dc6df8" . "6eaee500c40b63"]] = DbFactory::class;
    }
}