mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 00:33:41 +02:00
fix: namespace
This commit is contained in:
parent
01f5c3e2f1
commit
78316e608d
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "victorwesterlund/db-driver-mysqli",
|
"name": "victorwesterlund/libmysqldriver",
|
||||||
"description": "Abstraction library for common mysqli features",
|
"description": "Abstraction library for common mysqli features",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"DBDriver\\": "src/"
|
"libmysqldriver\\": "src/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require": {}
|
"require": {}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace DBDriver;
|
namespace libmysqldriver;
|
||||||
|
|
||||||
class MySQLDriver extends mysqli {
|
class MySQL extends mysqli {
|
||||||
function __construct(string $host, string $user, string $pass, string $db) {
|
function __construct(string $host, string $user, string $pass, string $db) {
|
||||||
parent::__construct($host, $user, $pass, $db);
|
parent::__construct($host, $user, $pass, $db);
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue