Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Mark root configuration node as deprecated #161

Merged
merged 6 commits into from
Nov 29, 2019
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
- nightly
alcaeus marked this conversation as resolved.
Show resolved Hide resolved

env:
global:
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
allow_failures:
- php: nightly
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public function getConfigTreeBuilder()
};

$node
->setDeprecated('DoctrineCacheBundle is deprecated and will not be available for Symfony 5. Please migrate your caches to symfony/cache and remove the doctrine_cache key from your configuration.')
->children()
->arrayNode('acl_cache')
->beforeNormalization()
Expand Down
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,3 @@ using Symfony, we no longer recommend configuring doctrine/cache through this
bundle. Instead, you should use symfony/cache for your cache needs. However, the
deprecation does not extend to doctrine/cache, you'll be able to use those
classes as you did so far.

## Installation

1. Add this bundle to your project as a composer dependency:

```bash
composer require doctrine/doctrine-cache-bundle
```

2. Add this bundle in your application kernel:

```php
// app/AppKernel.php
public function registerBundles()
{
// ...
$bundles[] = new \Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle();

return $bundles;
}
```

Read the [documentation](https://www.doctrine-project.org/projects/doctrine-cache-bundle/en/stable/usage.html) to learn how to configure and
use your own cache providers.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
],
"require": {
"php": "^7.1",
"symfony/doctrine-bridge": "^3.4|^4.0|^5.0",
"symfony/doctrine-bridge": "^3.4|^4.0",
"doctrine/inflector": "^1.0",
"doctrine/cache": "^1.4.2"
},
"require-dev": {
"phpunit/phpunit": "^7.0",
"symfony/phpunit-bridge": "^3.4|^4.0|^5.0",
"symfony/yaml": "^3.4|^4.0|^5.0",
"symfony/validator": "^3.4|^4.0|^5.0",
"symfony/console": "^3.4|^4.0|^5.0",
"symfony/finder": "^3.4|^4.0|^5.0",
"symfony/framework-bundle": "^3.4|^4.0|^5.0",
"symfony/phpunit-bridge": "^3.4|^4.0",
"symfony/yaml": "^3.4|^4.0",
"symfony/validator": "^3.4|^4.0",
"symfony/console": "^3.4|^4.0",
"symfony/finder": "^3.4|^4.0",
"symfony/framework-bundle": "^3.4|^4.0",
"symfony/security-acl": "^2.8",
"instaclick/coding-standard": "~1.1",
"satooshi/php-coveralls": "^1.0",
Expand Down