progetto fatto precedentemente adattato al framework creato con il corso
filippo.bertilotti
2024-06-10 7d7d7a336e8674a54292abe992b260d9cd2db192
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
 
$container = new Framework\Container;
 
$container->set(App\Database::class, function() {
    return new App\Database($_ENV["DB_HOST"], $_ENV["DB_NAME"], $_ENV["DB_USER"], $_ENV["DB_PASSWORD"]);
});
 
$container->set(Framework\TemplateViewerInterface::class, function() {
    return new Framework\MVCTemplateViewer;
});
 
return $container;