Skip to content

Commit 4bf7f84

Browse files
committed
Changed Autoload PSR-4
1 parent 48f2fed commit 4bf7f84

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
],
1212
"autoload": {
1313
"psr-4": {
14-
"Datatables\\" : "./"
14+
"Riculum\\Datatables\\" : "src/"
1515
}
1616
},
1717
"require": {
1818
"vlucas/phpdotenv": "^5.3",
1919
"riculum/php-pdo": "^1.0",
2020
"ext-pdo": "*"
21+
},
22+
"require-dev": {
23+
"phpunit/phpunit": "^9"
2124
}
2225
}

docs/example.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
3+
use Riculum\Datatables\Datatable;
4+
25
require_once __DIR__ . '/../vendor/autoload.php';
36

4-
use Datatables\core\Datatable;
57

68
/**
79
* Load .env file

core/Datatable.php renamed to src/Datatable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2-
namespace Datatables\core;
2+
namespace Riculum\Datatables;
33

4-
use Database\Core\Database as DB;
54
use PDO;
5+
use Riculum\Database as DB;
66

77
class Datatable {
88
static function getDatatable(string $table, array $columns, array $where = []): string

0 commit comments

Comments
 (0)