Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit b95eefe

Browse files
author
Andrey Helldar
authored
Merge pull request #64 from TheDragonCode/9.x
Changed namespace
2 parents a147a15 + 3de1b7a commit b95eefe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+201
-523
lines changed

.editorconfig

Lines changed: 0 additions & 251 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Support Questions & Other
4-
url: https://github.com/andrey-helldar/api-response/discussions
4+
url: https://github.com/TheDragonCode/api-response/discussions
55
about: Discuss any issues related to the application or templates working with it.

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: 7.4
21+
php-version: 8.0
2222
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
2323
coverage: xdebug
2424

@@ -31,9 +31,9 @@ jobs:
3131
- name: Execute tests
3232
run: |
3333
mkdir -p build/logs
34-
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
34+
sudo XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
3535
3636
- name: Export
3737
run: |
3838
wget https://scrutinizer-ci.com/ocular.phar
39-
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
39+
sudo php ocular.phar code-coverage:upload --format=php-clover coverage.clover

.github/workflows/laravel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
matrix:
1111
php: [ "7.3", "7.4", "8.0" ]
1212
laravel: [ "7.0", "8.0" ]
13-
support: [ "2.0", "3.0", "4.0" ]
13+
support: [ "5.0" ]
1414

1515
name: Laravel ${{ matrix.laravel }}, PHP ${{ matrix.php }}, Support ${{ matrix.support }}
1616

@@ -30,8 +30,8 @@ jobs:
3030

3131
- name: Install dependencies
3232
run: |
33-
composer require laravel/framework:^${{ matrix.laravel }} andrey-helldar/support:^${{ matrix.support }}
33+
composer require laravel/framework:^${{ matrix.laravel }} dragon-code/support:^${{ matrix.support }}
3434
composer update --prefer-stable --prefer-dist --no-progress --no-interaction
3535
3636
- name: Execute tests
37-
run: vendor/bin/phpunit tests/Laravel
37+
run: sudo vendor/bin/phpunit tests/Laravel

.github/workflows/symfony.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
matrix:
1111
php: [ "7.3", "7.4", "8.0" ]
1212
symfony: [ "4.0", "5.0" ]
13-
support: [ "2.0", "3.0", "4.0" ]
13+
support: [ "5.0" ]
1414

1515
name: Symfony ${{ matrix.symfony }}, PHP ${{ matrix.php }}, Support ${{ matrix.support }}
1616

@@ -30,8 +30,8 @@ jobs:
3030

3131
- name: Install dependencies
3232
run: |
33-
composer require symfony/http-foundation:^${{ matrix.symfony }} andrey-helldar/support:^${{ matrix.support }}
33+
composer require symfony/http-foundation:^${{ matrix.symfony }} dragon-code/support:^${{ matrix.support }}
3434
composer update --prefer-stable --prefer-dist --no-progress --no-interaction
3535
3636
- name: Execute tests
37-
run: vendor/bin/phpunit tests/Symfony
37+
run: sudo vendor/bin/phpunit tests/Symfony

.upgrading/7.x_8.x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Upgrading To 7.x From 6.x
1+
## Upgrading To 8.x From 7.x
22

33
If you are using the [andrey-helldar/support](https://github.com/andrey-helldar/support) package or dependencies that use it in your project, you need to update
44
them to support version 2.0.

.upgrading/8.x_9.x.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Upgrading To 9.x From 8.x
2+
3+
### If you only use the `api_response()` helper
4+
5+
1. Replace `"andrey-helldar/api-response": "^8.0"` with `"dragon-code/api-response": "^9.0"` in the `composer.json` file;
6+
3. Call the `composer update` console command.
7+
8+
### If you use class reference
9+
10+
1. Replace `"andrey-helldar/api-response": "^8.0"` with `"dragon-code/api-response": "^9.0"` in the `composer.json` file;
11+
2. Replace `Helldar\ApiResponse` namespace prefix with `DragonCode\ApiResponse`;
12+
3. Call the `composer update` console command.

0 commit comments

Comments
 (0)