Skip to content

Commit 5daa604

Browse files
committed
SDK-1039: Use local SDK in example project
1 parent b35c449 commit 5daa604

File tree

3 files changed

+28
-40
lines changed

3 files changed

+28
-40
lines changed

examples/composer.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
{
22
"description": "testing yoti-php-sdk",
33
"require": {
4-
"yoti/yoti-php-sdk": "*",
4+
"yoti/yoti-php-sdk": "^2.2.0",
55
"symfony/dotenv": "3.3.0"
66
},
77
"repositories": [
88
{
99
"type": "path",
1010
"url": "./sdk",
1111
"options": {
12-
"symlink": false
12+
"symlink": true
1313
}
1414
}
15-
],
16-
"scripts": {
17-
"copy-sdk-src": [
18-
"rm -rf ./vendor/yoti && rm -rf ./sdk && mkdir ./sdk",
19-
"cd .. && cp -R `ls -A | grep -v \"examples\"` ./examples/sdk && cd -"
20-
],
21-
"pre-install-cmd": [
22-
"@copy-sdk-src"
23-
],
24-
"pre-update-cmd": [
25-
"@copy-sdk-src"
26-
]
27-
}
28-
}
15+
]
16+
}

examples/composer.lock

Lines changed: 19 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/docker-compose.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ services:
77
- "4002:443"
88
volumes:
99
- ./:/usr/share/nginx/html
10+
- ../:/usr/share/nginx/html/sdk
1011
links:
1112
- php
1213
php:
1314
image: php:7-fpm-alpine
1415
volumes:
1516
- ./:/usr/share/nginx/html
17+
- ../:/usr/share/nginx/html/sdk
1618

1719
composer:
1820
image: composer/composer:php7
1921
volumes:
20-
- ../:/usr/share/nginx/html
21-
working_dir: /usr/share/nginx/html/examples
22+
- ./:/usr/share/nginx/html
23+
- ../:/usr/share/nginx/html/sdk
24+
working_dir: /usr/share/nginx/html
2225
command: update

0 commit comments

Comments
 (0)