Skip to content

Commit b7eb25c

Browse files
authored
Prepare for stable release (#65)
* Using stable dependencies * Removed unneeded check * Added changelog * Added changelog and fixed composer.json * Bump PHP version
1 parent 3e95103 commit b7eb25c

File tree

4 files changed

+40
-30
lines changed

4 files changed

+40
-30
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ php:
99
- 7.1
1010
- 7.0
1111
- 5.6
12-
- 5.5
1312

1413
env:
1514
global:
@@ -29,7 +28,7 @@ branches:
2928
matrix:
3029
fast_finish: true
3130
include:
32-
- php: 5.5
31+
- php: 5.6
3332
env: COMPOSER_COMMAND="composer update --prefer-lowest --prefer-stable" COVERAGE=true TEST_COMMAND="php -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-clover=coverage.xml" SYMFONY_VERSION=2.7.*
3433
- php: hhvm
3534
env: SYMFONY_VERSION=3.3.*

Changelog.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5-
## UNRELEASED
5+
## 1.0.0
6+
7+
### Added
8+
9+
- Support for Predis pool to be persistent
10+
- Added new alias for the default provider: "php_cache"
11+
12+
### Removed
13+
14+
- Support for PHP 5.5
615

716
## 0.5.0
817

composer.json

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"name": "cache/adapter-bundle",
3-
"type": "library",
4-
"description": "A bundle that registers cache implementations as Symfony services supporting PSR-6 and tagging",
5-
"keywords": [],
6-
"homepage": "https://github.com/php-cache/adapter-bundle",
7-
"license": "MIT",
2+
"name": "cache/adapter-bundle",
3+
"type": "library",
4+
"description": "A bundle that registers cache implementations as Symfony services supporting PSR-6 and tagging",
5+
"keywords": [],
6+
"homepage": "https://github.com/php-cache/adapter-bundle",
7+
"license": "MIT",
88
"authors": [
99
{
10-
"name": "Aaron Scherer",
11-
"email": "[email protected]",
10+
"name": "Aaron Scherer",
11+
"email": "[email protected]",
1212
"homepage": "https://github.com/aequasi"
1313
},
1414
{
15-
"name": "Tobias Nyholm",
16-
"email": "[email protected]",
15+
"name": "Tobias Nyholm",
16+
"email": "[email protected]",
1717
"homepage": "https://github.com/Nyholm"
1818
}
1919
],
2020
"require": {
21-
"php": "^5.5 || ^7.0",
21+
"php": "^5.6 || ^7.0",
2222
"symfony/framework-bundle": "^2.7 || ^3.0",
2323
"symfony/options-resolver": "^2.7 || ^3.0",
24-
"psr/cache": "^1.0",
25-
"cache/namespaced-cache": "^0.1"
24+
"psr/cache": "^1.0",
25+
"cache/namespaced-cache": "^1.0"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^4.8.36 || ^5.5",
2929
"symfony/symfony": "^2.7 || ^3.0",
3030
"matthiasnoback/symfony-dependency-injection-test": "^1.0",
3131
"nyholm/symfony-bundle-test": "^1.2.0",
32-
"cache/apc-adapter": "@stable",
33-
"cache/apcu-adapter": "@stable",
34-
"cache/array-adapter": "@stable",
35-
"cache/chain-adapter": "@stable",
36-
"cache/doctrine-adapter": "@stable",
37-
"cache/filesystem-adapter": "@stable",
38-
"cache/memcache-adapter": "@stable",
39-
"cache/memcached-adapter": "@stable",
40-
"cache/predis-adapter": "@stable",
41-
"cache/redis-adapter": "@stable",
42-
"cache/void-adapter": "@stable",
43-
"cache/prefixed-cache": "@stable",
32+
"cache/apc-adapter": "^1.0",
33+
"cache/apcu-adapter": "^1.0",
34+
"cache/array-adapter": "^1.0",
35+
"cache/chain-adapter": "^1.0",
36+
"cache/doctrine-adapter": "^1.0",
37+
"cache/filesystem-adapter": "^1.0",
38+
"cache/memcache-adapter": "^1.0",
39+
"cache/memcached-adapter": "^1.0",
40+
"cache/predis-adapter": "^1.0",
41+
"cache/redis-adapter": "^1.0",
42+
"cache/void-adapter": "^1.0",
43+
"cache/prefixed-cache": "^1.0",
4444
"doctrine/cache": "^1.6",
4545
"predis/predis": "^1.1"
4646
},
@@ -57,5 +57,7 @@
5757
"psr-4": {
5858
"Cache\\AdapterBundle\\Tests\\": "tests/"
5959
}
60-
}
60+
},
61+
"minimum-stability": "dev",
62+
"prefer-stable": true
6163
}

src/Factory/PredisFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getAdapter(array $config)
3838
'scheme' => $config['scheme'],
3939
'host' => $config['host'],
4040
'port' => $config['port'],
41-
'persistent' => isset($config['persistent']) ? $config['persistent'] : false,
41+
'persistent' => $config['persistent'],
4242
]
4343
);
4444
} else {

0 commit comments

Comments
 (0)