File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \DependencyInjection ;
13
13
14
14
use Doctrine \Common \Annotations \Annotation ;
15
+ use Doctrine \Common \Cache \Cache ;
15
16
use Symfony \Bundle \FullStack ;
16
17
use Symfony \Component \Asset \Package ;
17
18
use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
@@ -741,7 +742,7 @@ private function addAnnotationsSection(ArrayNodeDefinition $rootNode)
741
742
->info ('annotation configuration ' )
742
743
->{class_exists (Annotation::class) ? 'canBeDisabled ' : 'canBeEnabled ' }()
743
744
->children ()
744
- ->scalarNode ('cache ' )->defaultValue ('php_array ' )->end ()
745
+ ->scalarNode ('cache ' )->defaultValue (interface_exists (Cache::class) ? 'php_array ' : ' none ' )->end ()
745
746
->scalarNode ('file_cache_dir ' )->defaultValue ('%kernel.cache_dir%/annotations ' )->end ()
746
747
->booleanNode ('debug ' )->defaultValue ($ this ->debug )->end ()
747
748
->end ()
You can’t perform that action at this time.
0 commit comments