8000 Change 'cache_key' to AbstractRendererEngine::CACHE_KEY_VAR · symfony/symfony@4fcb41c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4fcb41c

Browse files
authored
Change 'cache_key' to AbstractRendererEngine::CACHE_KEY_VAR
The purpose of this change is to find all usages of AbstractRendererEngine::CACHE_KEY_VAR. Currently, if you search for AbstractRendererEngine::CACHE_KEY_VAR you will see only access to it, i.e. (`$view->vars[AbstractRendererEngine::CACHE_KEY_VAR]`), but you can't find it in write level. With this pull request you can see where is was used for write.
1 parent ed3ab52 commit 4fcb41c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/BaseType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Form\Extension\Core\Type;
1313

14+
use Symfony\Component\Form\AbstractRendererEngine;
1415
use Symfony\Component\Form\AbstractType;
1516
use Symfony\Component\Form\FormBuilderInterface;
1617
use Symfony\Component\Form\FormInterface;
@@ -100,7 +101,7 @@ public function buildView(FormView $view, FormInterface $form, array $options)
100101
// collection form have different types (dynamically), they should
101102
// be rendered differently.
102103
// https://github.com/symfony/symfony/issues/5038
103-
'cache_key' => $uniqueBlockPrefix.'_'.$form->getConfig()->getType()->getBlockPrefix(),
104+
AbstractRendererEngine::CACHE_KEY_VAR => $uniqueBlockPrefix.'_'.$form->getConfig()->getType()->getBlockPrefix(),
104105
]);
105106
}
106107

0 commit comments

Comments
 (0)
0