Skip to content

Commit f4ea5ce

Browse files
committed
wip
1 parent 088eace commit f4ea5ce

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function runDir(string $base, string $dir, array &$lines, array $ignore, array $
4949
$data = preg_replace('|/\*\*.*?\*/|s', '', $data);
5050
array_push($lines, "// file: $dir/$entry");
5151
foreach (explode("\n", $data) as $line) {
52-
if (!preg_match('/^<\?php|^namespace |^use |spl_autoload_register|declare\s*\(\s*strict_types\s*=\s*1|^\s*\/\//', $line)) {
52+
if (!preg_match('/^<\?php|^namespace |^use |vendor\/autoload|declare\s*\(\s*strict_types\s*=\s*1|^\s*\/\//', $line)) {
5353
array_push($lines, $line);
5454
}
5555
}

src/index.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
use Tqdev\PhpCrudApi\RequestFactory;
55
use Tqdev\PhpCrudApi\ResponseUtils;
66

7-
// do not reformat the following line
8-
spl_autoload_register(function ($class) {include str_replace('\\', '/', __DIR__ . "/$class.php");});
9-
// as it is excluded in the build
7+
require '../vendor/autoload.php';
108

119
$config = new Config([
1210
'username' => 'php-crud-api',

0 commit comments

Comments
 (0)