Skip to content

Commit 160b598

Browse files
committed
feature #37951 [FrameworkBundle] Make AbstractPhpFileCacheWarmer public (ossinkine)
This PR was submitted for the 3.4 branch but it was merged into the 5.2-dev branch instead. Discussion ---------- [FrameworkBundle] Make AbstractPhpFileCacheWarmer public | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT Introducing the PhpArrayAdapter was a great feature. It has proven itself well in the production. Actually, using the adapter is closely related to warming up the cache for it. FrameworkBundle has an AbstractPhpFileCacheWarmer for conveniently creating a custom warmer. But using it outside of the FrameworkBundle becomes more complicated because it is marked as internal. I propose making it public and allow it to be used outside of the FrameworkBundle. For example, I've proposed to cache Doctrine metadata using PhpArrayAdapter and the implementation uses AbstractPhpFileCacheWarmer doctrine/DoctrineBundle#1196 Commits ------- a0fb442 Make AbstractPhpFileCacheWarmer public
2 parents 4a89215 + a0fb442 commit 160b598

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
use Symfony\Component\Config\Resource\ClassExistenceResource;
1818
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
1919

20-
/**
21-
* @internal
22-
*/
2320
abstract class AbstractPhpFileCacheWarmer implements CacheWarmerInterface
2421
{
2522
private $phpArrayFile;

0 commit comments

Comments
 (0)