File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 4646 "phplist/core" : " v5.0.0-alpha8" ,
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" ,
Original file line number Diff line number Diff line change 11# config/services.yaml
22parameters :
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
66services :
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
Original file line number Diff line number Diff line change 99use JsonException ;
1010use RuntimeException ;
1111
12+ /**
13+ * @deprecated since phplist/rest-api-client should be used instead.
14+ */
1215class ApiClient
1316{
1417 private Client $ client ;
You can’t perform that action at this time.
0 commit comments