Skip to content

Commit b6536b1

Browse files
Merge pull request #105 from julienloizelet/feat/update-symfony
Feat/update symfony
2 parents 8bd1e8e + ead975d commit b6536b1

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Check version ${{ env.VERSION_NUMBER }} consistency in files
4545
# Check src/Constants.php and CHANGELOG.md
4646
run: |
47-
: # Check public const VERSION = 'vVERSION_NUMBER'; in CHANGELOG.md in src/Constants.php
47+
# Check public const VERSION = 'vVERSION_NUMBER'; in CHANGELOG.md in src/Constants.php
4848
CONSTANT_VERSION=$(grep -E "public const VERSION = 'v(.*)';" src/Constants.php | sed 's/ //g')
4949
if [[ $CONSTANT_VERSION == "publicconstVERSION='v${{ env.VERSION_NUMBER }}';" ]]
5050
then
@@ -54,7 +54,7 @@ jobs:
5454
exit 1
5555
fi
5656
57-
: # Check top ## [VERSION_NUMBER](GITHUB_URL/releases/tag/vVERSION_NUMBER) - yyyy-mm-dd in CHANGELOG.md
57+
# Check top ## [VERSION_NUMBER](GITHUB_URL/releases/tag/vVERSION_NUMBER) - yyyy-mm-dd in CHANGELOG.md
5858
CURRENT_DATE=$(date +'%Y-%m-%d')
5959
echo $CURRENT_DATE
6060
CHANGELOG_VERSION=$(grep -o -E "## \[(.*)\].* - $CURRENT_DATE" CHANGELOG.md | head -1 | sed 's/ //g')
@@ -67,7 +67,7 @@ jobs:
6767
exit 1
6868
fi
6969
70-
: # Check top [_Compare with previous release_](GITHUB_URL/compare/vLAST_TAG...vVERSION_NUMBER) in CHANGELOG.md
70+
# Check top [_Compare with previous release_](GITHUB_URL/compare/vLAST_TAG...vVERSION_NUMBER) in CHANGELOG.md
7171
COMPARISON=$(grep -oP "\/compare\/\K(.*)$" CHANGELOG.md | head -1)
7272
LAST_TAG=$(curl -Ls -o /dev/null -w %{url_effective} ${{ env.GITHUB_URL }}/releases/latest | grep -oP "\/tag\/\K(.*)$")
7373
if [[ $COMPARISON == "$LAST_TAG...v${{ env.VERSION_NUMBER }})" ]]

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77

8+
## [0.30.0](https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v0.30.0) - 2022-09-22
9+
[_Compare with previous release_](https://github.com/crowdsecurity/php-cs-bouncer/compare/v0.29.0...v0.30.0)
10+
11+
### Changed
12+
- Update `symfony/cache` and `symfony/config` dependencies requirement
13+
814
## [0.29.0](https://github.com/crowdsecurity/php-cs-bouncer/releases/tag/v0.29.0) - 2022-08-11
915
[_Compare with previous release_](https://github.com/crowdsecurity/php-cs-bouncer/compare/v0.28.0...v0.29.0)
1016

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
],
4141
"require": {
4242
"php": "^7.2 || ^8.0",
43-
"symfony/config": "^4.4.27 || ^5.2",
44-
"symfony/cache": "5.4.7 || 6.0.6",
43+
"symfony/config": "^4.4.27 || ^5.2 || ^6.0",
44+
"symfony/cache": "^5.4.11 || ^6.0.11",
4545
"monolog/monolog": "^1.17 || ^2.1",
4646
"gregwar/captcha": "^1.1",
4747
"mlocati/ip-lib": "^1.18",

docs/USER_GUIDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Please note that first and foremost a CrowdSec agent must be installed on a serv
4242

4343
## Features
4444

45-
- CrowdSec LAPI Support
45+
- CrowdSec Local API Support
4646
- Handle IP, IP ranges and Country scoped decisions
47-
- Clear, prune and refresh the LAPI cache
47+
- Clear, prune and refresh the Local API cache
4848
- `Live mode` or `Stream mode`
4949
- Large PHP matrix compatibility: 7.2.x, 7.3.x, 7.4.x, 8.0.x and 8.1.x
5050
- Built-in support for the most known cache systems like Redis, Memcached, PhpFiles
@@ -117,7 +117,7 @@ Please look at the [Settings example file](../scripts/auto-prepend/settings.exam
117117

118118
Here is the list of available settings:
119119

120-
##### LAPI Connection
120+
##### Local API Connection
121121

122122
- `auth_type`: Select from `api_key` and `tls`. Choose if you want to use an API-KEY or a TLS (pki) authentification.
123123
TLS authentication is only available if you use CrowdSec agent with a version superior to 1.4.0.
@@ -147,13 +147,13 @@ Here is the list of available settings:
147147
Only required if you choose `tls` as `auth_type` and `tls_verify_peer` is set to true.
148148

149149

150-
- `api_url`: Define the URL to your LAPI server, default to `http://localhost:8080`.
150+
- `api_url`: Define the URL to your Local API server, default to `http://localhost:8080`.
151151

152152

153-
- `api_timeout`: In seconds. The timeout when calling LAPI. Must be greater or equal than 1. Default to 1 sec.
153+
- `api_timeout`: In seconds. The timeout when calling Local API. Must be greater or equal than 1. Default to 1 sec.
154154

155155

156-
- `use_curl`: By default, this lib call the REST LAPI using `file_get_contents` method (`allow_url_fopen` is required).
156+
- `use_curl`: By default, this lib call the REST Local API using `file_get_contents` method (`allow_url_fopen` is required).
157157
You can set `use_curl` to `true` in order to use `cURL` request instead (`curl` is in then required)
158158

159159

src/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Constants
2020
public const DEFAULT_LAPI_URL = 'http://localhost:8080';
2121

2222
/** @var string The last version of this library */
23-
public const VERSION = 'v0.29.0';
23+
public const VERSION = 'v0.30.0';
2424

2525
/** @var string The user agent used to send request to LAPI */
2626
public const BASE_USER_AGENT = 'PHP CrowdSec Bouncer/' . self::VERSION;

src/RestClient/Curl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ private function createOptions(
121121

122122
/**
123123
* @param $handle
124+
*
124125
* @return mixed
125126
*/
126127
protected function getResponseHttpCode($handle)

0 commit comments

Comments
 (0)