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

Commit

Permalink
Merge pull request #161 from alcaeus/deprecate-project
Browse files Browse the repository at this point in the history
Mark root configuration node as deprecated
  • Loading branch information
alcaeus authored Nov 29, 2019
2 parents 2c0a226 + bd2e374 commit 6bee2f9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 35 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ php:
- 7.1
- 7.2
- 7.3
- nightly
- 7.4snapshot

matrix:
allow_failures:
- php: nightly
env:
global:
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
cache:
directories:
- $HOME/.composer/cache
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

0 comments on commit 6bee2f9

Please sign in to comment.