diff --git a/.travis.yml b/.travis.yml index f5e7199..5c48aac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 21ed20d..34d30d7 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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() diff --git a/README.md b/README.md index a3b5a3e..8443b41 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/composer.json b/composer.json index eff8cf4..720fe3b 100644 --- a/composer.json +++ b/composer.json @@ -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",