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

Changed namespace #64

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 0 additions & 251 deletions .editorconfig

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Support Questions & Other
url: https://github.com/andrey-helldar/api-response/discussions
url: https://github.com/TheDragonCode/api-response/discussions
about: Discuss any issues related to the application or templates working with it.
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: xdebug

Expand All @@ -31,9 +31,9 @@ jobs:
- name: Execute tests
run: |
mkdir -p build/logs
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
sudo XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

- name: Export
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
sudo php ocular.phar code-coverage:upload --format=php-clover coverage.clover
6 changes: 3 additions & 3 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
php: [ "7.3", "7.4", "8.0" ]
laravel: [ "7.0", "8.0" ]
support: [ "2.0", "3.0", "4.0" ]
support: [ "5.0" ]

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

Expand All @@ -30,8 +30,8 @@ jobs:

- name: Install dependencies
run: |
composer require laravel/framework:^${{ matrix.laravel }} andrey-helldar/support:^${{ matrix.support }}
composer require laravel/framework:^${{ matrix.laravel }} dragon-code/support:^${{ matrix.support }}
composer update --prefer-stable --prefer-dist --no-progress --no-interaction

- name: Execute tests
run: vendor/bin/phpunit tests/Laravel
run: sudo vendor/bin/phpunit tests/Laravel
6 changes: 3 additions & 3 deletions .github/workflows/symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
php: [ "7.3", "7.4", "8.0" ]
symfony: [ "4.0", "5.0" ]
support: [ "2.0", "3.0", "4.0" ]
support: [ "5.0" ]

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

Expand All @@ -30,8 +30,8 @@ jobs:

- name: Install dependencies
run: |
composer require symfony/http-foundation:^${{ matrix.symfony }} andrey-helldar/support:^${{ matrix.support }}
composer require symfony/http-foundation:^${{ matrix.symfony }} dragon-code/support:^${{ matrix.support }}
composer update --prefer-stable --prefer-dist --no-progress --no-interaction

- name: Execute tests
run: vendor/bin/phpunit tests/Symfony
run: sudo vendor/bin/phpunit tests/Symfony
2 changes: 1 addition & 1 deletion .upgrading/7.x_8.x.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Upgrading To 7.x From 6.x
## Upgrading To 8.x From 7.x

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
them to support version 2.0.
Expand Down
12 changes: 12 additions & 0 deletions .upgrading/8.x_9.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Upgrading To 9.x From 8.x

### If you only use the `api_response()` helper

1. Replace `"andrey-helldar/api-response": "^8.0"` with `"dragon-code/api-response": "^9.0"` in the `composer.json` file;
3. Call the `composer update` console command.

### If you use class reference

1. Replace `"andrey-helldar/api-response": "^8.0"` with `"dragon-code/api-response": "^9.0"` in the `composer.json` file;
2. Replace `Helldar\ApiResponse` namespace prefix with `DragonCode\ApiResponse`;
3. Call the `composer update` console command.
Loading