Skip to content

Commit 399066a

Browse files
authored
Merge pull request #184 from bitrix24/feature/183-add-vendor-to-useragent
Feature/183 add vendor to useragent
2 parents 68c7a34 + f0280b6 commit 399066a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,16 @@
8686
- `get` get localizations
8787
- `fields` get localization fields
8888
- `delete` delete currency, with batch calls support
89+
- Developer experience: added make command `lint-all` for run all code linters step by step, [see details](https://github.com/bitrix24/b24phpsdk/issues/183)
8990

9091
### Fixed
9192

9293
- Fixed error in arguments in service for method `placement.bind`, [see details](https://github.com/bitrix24/b24phpsdk/issues/151)
93-
- Fixed errors in `task.elapseditem.*` call in ApiClient [see details](https://github.com/bitrix24/b24phpsdk/issues/180)
94+
- Fixed errors in `task.elapseditem.*` call in ApiClient [see details](https://github.com/bitrix24/b24phpsdk/issues/180)
95+
9496
### Changed
9597

98+
- Changed B24-PHP-SDK useragent: added prefix `vendor`, [see details](https://github.com/bitrix24/b24phpsdk/issues/183)
9699
-**️️BC** Changed contract `Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface`, this change needs to process corner cases
97100
when [installed application with UI or without UI](https://github.com/bitrix24/b24phpsdk/issues/150):
98101
- changed method `public function applicationInstalled(?string $applicationToken): void` application token now is nullable

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ help:
4141
@echo "ngrok-up - start ngrok"
4242
@echo "ngrok-down - stop ngrok"
4343
@echo ""
44+
@echo "lint-all - lint codebase with all linters step by step"
4445
@echo "lint-allowed-licenses - lint dependencies for valid licenses"
4546
@echo "lint-cs-fixer - lint source code with php-cs-fixer"
4647
@echo "lint-cs-fixer-fix - fix source code with php-cs-fixer"
@@ -133,6 +134,9 @@ lint-rector:
133134
lint-rector-fix:
134135
docker-compose run --rm php-cli vendor/bin/rector process
135136

137+
.PHONY: lint-all
138+
lint-all: lint-allowed-licenses lint-cs-fixer lint-phpstan lint-rector
139+
136140
# unit tests
137141
.PHONY: test-unit
138142
test-unit:

src/Core/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ApiClient implements ApiClientInterface
4040
*/
4141
protected const SDK_VERSION = '1.3.0';
4242

43-
protected const SDK_USER_AGENT = 'b24-php-sdk';
43+
protected const SDK_USER_AGENT = 'b24-php-sdk-vendor';
4444

4545
/**
4646
* ApiClient constructor.

0 commit comments

Comments
 (0)