Skip to content

Commit a854f40

Browse files
committed
ISSUE-357: fix config
1 parent 56538bf commit a854f40

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
},
4444
"require": {
4545
"php": "^8.1",
46-
"phplist/core": "v5.0.0-alpha8",
46+
"phplist/core": "dev-main",
4747
"symfony/twig-bundle": "^6.4",
4848
"symfony/webpack-encore-bundle": "^2.2",
49-
"tatevikgr/rest-api-client": "dev-master"
49+
"tatevikgr/rest-api-client": "dev-ISSUE-357"
5050
},
5151
"require-dev": {
5252
"phpunit/phpunit": "^9.5",

config/services.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# config/services.yaml
22
parameters:
33
api_base_url: '%env(API_BASE_URL)%'
4-
env(API_BASE_URL): 'http://api.phplist.local/api/v2'
4+
env(API_BASE_URL): 'http://api.phplist.local/api/v2/'
55

66
services:
77
_defaults:
@@ -29,3 +29,10 @@ services:
2929
tags: ['controller.service_arguments']
3030

3131
Symfony\Component\HttpFoundation\Session\SessionInterface: '@session'
32+
33+
PhpList\RestApiClient\Client:
34+
$baseUrl: '%api_base_url%'
35+
36+
PhpList\RestApiClient\Endpoint\AuthClient:
37+
autoconfigure: true
38+
autowire: true

src/Service/ApiClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use JsonException;
1010
use RuntimeException;
1111

12+
/**
13+
* @deprecated since phplist/rest-api-client should be used instead.
14+
*/
1215
class ApiClient
1316
{
1417
private Client $client;

0 commit comments

Comments
 (0)