Skip to content

Commit dc9ff65

Browse files
committed
add src folder
1 parent 374988f commit dc9ff65

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/integration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,11 @@ jobs:
137137
SDKGEN_CLIENT_ID: ${{ secrets.SDKGEN_CLIENT_ID }}
138138
SDKGEN_CLIENT_SECRET: ${{ secrets.SDKGEN_CLIENT_SECRET }}
139139
run: docker compose up
140+
- name: Create src dir
141+
run: mkdir src
140142
- name: Move
141143
working-directory: .
142-
run: cp ./output/*.php ./integration/php/
144+
run: cp ./output/*.php ./integration/php/src
143145
- name: Composer install
144146
run: composer install --no-interaction --no-ansi --no-progress
145147
- name: Run

integration/php/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
"require": {
33
"php": ">=8.1",
44
"sdkgen/client": "^2.0"
5+
},
6+
"autoload": {
7+
"psr-4": {
8+
"SDK\\": "src/"
9+
}
510
}
611
}

integration/php/main.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
require_once __DIR__ . '/vendor/autoload.php';
44

5-
require_once __DIR__ . '/TestTag.php';
6-
require_once __DIR__ . '/Error.php';
7-
require_once __DIR__ . '/ErrorException.php';
8-
require_once __DIR__ . '/HelloWorld.php';
9-
require_once __DIR__ . '/Response.php';
10-
require_once __DIR__ . '/Todo.php';
11-
require_once __DIR__ . '/Todos.php';
12-
require_once __DIR__ . '/Client.php';
13-
require_once __DIR__ . '/CommonFormElement.php';
14-
require_once __DIR__ . '/CommonFormElementInput.php';
15-
require_once __DIR__ . '/CommonFormElementSelect.php';
16-
require_once __DIR__ . '/CommonFormElementTextArea.php';
17-
185
$credentials = new \Sdkgen\Client\Credentials\Anonymous();
196
$client = new \SDK\Client('http://127.0.0.1:1080', $credentials);
207

0 commit comments

Comments
 (0)