8000 minor #33021 [FrameworkBundle] remove deprecated cache pool argument … · symfony/symfony@e8cd106 · GitHub
[go: up one dir, main page]

Skip to content

Commit e8cd106

Browse files
minor #33021 [FrameworkBundle] remove deprecated cache pool argument (xabbuh)
This PR was merged into the 4.3 branch. Discussion ---------- [FrameworkBundle] remove deprecated cache pool argument | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 3f51a55 remove deprecated cache pool arguments
2 parents f3f6b58 + 3f51a55 commit e8cd106

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/AnnotationsCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testClassAutoloadException()
8181
$this->assertFalse(class_exists($annotatedClass = 'C\C\C', false));
8282

8383
file_put_contents($this->cacheDir.'/annotations.map', sprintf('<?php return %s;', var_export([$annotatedClass], true)));
84-
$warmer = new AnnotationsCacheWarmer(new AnnotationReader(), tempnam($this->cacheDir, __FUNCTION__), new ArrayAdapter());
84+
$warmer = new AnnotationsCacheWarmer(new AnnotationReader(), tempnam($this->cacheDir, __FUNCTION__));
8585

8686
spl_autoload_register($classLoader = function ($class) use ($annotatedClass) {
8787
if ($class === $annotatedClass) {
@@ -106,7 +106,7 @@ public function testClassAutoloadExceptionWithUnrelatedException()
106106
$this->assertFalse(class_exists($annotatedClass = 'AClassThatDoesNotExist_FWB_CacheWarmer_AnnotationsCacheWarmerTest', false));
107107

108108
file_put_contents($this->cacheDir.'/annotations.map', sprintf('<?php return %s;', var_export([$annotatedClass], true)));
109-
$warmer = new AnnotationsCacheWarmer(new AnnotationReader(), tempnam($this->cacheDir, __FUNCTION__), new ArrayAdapter());
109+
$warmer = new AnnotationsCacheWarmer(new AnnotationReader(), tempnam($this->cacheDir, __FUNCTION__));
110110

111111
spl_autoload_register($classLoader = function ($class) use ($annotatedClass) {
112112
if ($class === $annotatedClass) {

src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/SerializerCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testClassAutoloadException()
7373

7474
$this->assertFalse(class_exists($mappedClass = 'AClassThatDoesNotExist_FWB_CacheWarmer_SerializerCacheWarmerTest', false));
7575

76-
$warmer = new SerializerCacheWarmer([new YamlFileLoader(__DIR__.'/../Fixtures/Serialization/Resources/does_not_exist.yaml')], tempnam(sys_get_temp_dir(), __FUNCTION__), new ArrayAdapter());
76+
$warmer = new SerializerCacheWarmer([new YamlFileLoader(__DIR__.'/../Fixtures/Serialization/Resources/does_not_exist.yaml')], tempnam(sys_get_temp_dir(), __FUNCTION__));
7777

7878
spl_autoload_register($classLoader = function ($class) use ($mappedClass) {
7979
if ($class === $mappedClass) {
@@ -101,7 +101,7 @@ public function testClassAutoloadExceptionWithUnrelatedException()
101101

102102
$this->assertFalse(class_exists($mappedClass = 'AClassThatDoesNotExist_FWB_CacheWarmer_SerializerCacheWarmerTest', false));
103103

104-
$warmer = new SerializerCacheWarmer([new YamlFileLoader(__DIR__.'/../Fixtures/Serialization/Resources/does_not_exist.yaml')], tempnam(sys_get_temp_dir(), __FUNCTION__), new ArrayAdapter());
104+
$warmer = new SerializerCacheWarmer([new YamlFileLoader(__DIR__.'/../Fixtures/Serialization/Resources/does_not_exist.yaml')], tempnam(sys_get_temp_dir(), __FUNCTION__));
105105

106106
spl_autoload_register($classLoader = function ($class) use ($mappedClass) {
107107
if ($class === $mappedClass) {

src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/ValidatorCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testClassAutoloadException()
9292

9393
$validatorBuilder = new ValidatorBuilder();
9494
$validatorBuilder->addYamlMapping(__DIR__.'/../Fixtures/Validation/Resources/does_not_exist.yaml');
95-
$warmer = new ValidatorCacheWarmer($validatorBuilder, tempnam(sys_get_temp_dir(), __FUNCTION__), new ArrayAdapter());
95+
$warmer = new ValidatorCacheWarmer($validatorBuilder, tempnam(sys_get_temp_dir(), __FUNCTION__));
9696

9797
spl_autoload_register($classloader = function ($class) use ($mappedClass) {
9898
if ($class === $mappedClass) {
@@ -118,7 +118,7 @@ public function testClassAutoloadExceptionWithUnrelatedException()
118118

119119
$validatorBuilder = new ValidatorBuilder();
120120
$validatorBuilder->addYamlMapping(__DIR__.'/../Fixtures/Validation/Resources/does_not_exist.yaml');
121-
$warmer = new ValidatorCacheWarmer($validatorBuilder, tempnam(sys_get_temp_dir(), __FUNCTION__), new ArrayAdapter());
121+
$warmer = new ValidatorCacheWarmer($validatorBuilder, tempnam(sys_get_temp_dir(), __FUNCTION__));
122122

123123
spl_autoload_register($classLoader = function ($class) use ($mappedClass) {
124124
if ($class === $mappedClass) {

0 commit comments

Comments
 (0)
0