Create an insecure bank application
This commit is contained in:
14
webroot/lib/Controller/Sql.php
Normal file
14
webroot/lib/Controller/Sql.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Controller;
|
||||
|
||||
require_once __DIR__ . '/../../config.php';
|
||||
|
||||
class Sql
|
||||
{
|
||||
public static function connection(): \PDO
|
||||
{
|
||||
return new \PDO(CONFIG_SQL_DSN, CONFIG_SQL_USER, CONFIG_SQL_PASSWORD);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user