Skip to content

Commit 7534994

Browse files
authored
Merge pull request #268 from Art4/remove-deprecated-code
Remove deprecated code
2 parents 184fe03 + 9c7a0e4 commit 7534994

32 files changed

+305
-2093
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/kbsali/php-redmine-api/compare/v1.8.0...master)
99

10+
### Removed
11+
12+
- **BREAKING**: Deprecated client `Redmine\Client` was removed, use `Redmine\Client\NativeCurlClient` or `Redmine\Client\Psr18Client` instead
13+
1014
## [v1.8.0](https://github.com/kbsali/php-redmine-api/compare/v1.7.0...v1.8.0) - 2021-04-19
1115

1216
### Added

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,21 @@ You can run test suite to make sure the library will work properly on your syste
115115

116116
```
117117
$ vendor/bin/phpunit
118-
PHPUnit 9.5.3 by Sebastian Bergmann and contributors.
118+
PHPUnit 9.5.4 by Sebastian Bergmann and contributors.
119119
120120
Warning: No code coverage driver available
121121
122-
............................................................... 63 / 445 ( 14%)
123-
............................................................... 126 / 445 ( 28%)
124-
............................................................... 189 / 445 ( 42%)
125-
............................................................... 252 / 445 ( 56%)
126-
............................................................... 315 / 445 ( 70%)
127-
............................................................... 378 / 445 ( 84%)
128-
............................................................... 441 / 445 ( 99%)
129-
.... 445 / 445 (100%)
122+
............................................................... 63 / 432 ( 14%)
123+
............................................................... 126 / 432 ( 29%)
124+
............................................................... 189 / 432 ( 43%)
125+
............................................................... 252 / 432 ( 58%)
126+
............................................................... 315 / 432 ( 72%)
127+
............................................................... 378 / 432 ( 87%)
128+
...................................................... 432 / 432 (100%)
130129
131-
Time: 00:00.102, Memory: 12.00 MB
130+
Time: 00:00.149, Memory: 14.00 MB
132131
133-
OK (445 tests, 993 assertions)
132+
OK (432 tests, 1098 assertions)
134133
```
135134

136135
## Basic usage of `php-redmine-api` client
@@ -171,7 +170,6 @@ require_once 'vendor/autoload.php';
171170

172171
... or valid username/password.
173172

174-
175173
```diff
176174
<?php
177175

@@ -282,9 +280,14 @@ $psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
282280
+};
283281
+
284282
// Instantiate with ApiKey
285-
-$client = new \Redmine\Client\Prs18Client($guzzle, $psr17Factory, $psr17Factory, 'https://redmine.example.com', '1234567890abcdfgh');
286-
+$client = new \Redmine\Client\Prs18Client($guzzleWrapper, $psr17Factory, $psr17Factory, 'https://redmine.example.com', '1234567890abcdfgh');
287-
283+
$client = new \Redmine\Client\Prs18Client(
284+
- $guzzle,
285+
+ $guzzleWrapper,
286+
$psr17Factory,
287+
$psr17Factory,
288+
'https://redmine.example.com',
289+
'1234567890abcdfgh'
290+
);
288291
```
289292

290293
## Built-in Redmine features

0 commit comments

Comments
 (0)