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 1212namespace Symfony \Bundle \FrameworkBundle \DependencyInjection ;
1313
1414use Doctrine \Common \Annotations \Annotation ;
15+ use Doctrine \Common \Cache \Cache ;
1516use Symfony \Bundle \FullStack ;
1617use Symfony \Component \Asset \Package ;
1718use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
@@ -741,7 +742,7 @@ private function addAnnotationsSection(ArrayNodeDefinition $rootNode)
741742 ->info ('annotation configuration ' )
742743 ->{class_exists (Annotation::class) ? 'canBeDisabled ' : 'canBeEnabled ' }()
743744 ->children ()
744- ->scalarNode ('cache ' )->defaultValue ('php_array ' )->end ()
745+ ->scalarNode ('cache ' )->defaultValue (interface_exists (Cache::class) ? 'php_array ' : ' none ' )->end ()
745746 ->scalarNode ('file_cache_dir ' )->defaultValue ('%kernel.cache_dir%/annotations ' )->end ()
746747 ->booleanNode ('debug ' )->defaultValue ($ this ->debug )->end ()
747748 ->end ()
You can’t perform that action at this time.
0 commit comments