@@ -85,7 +85,7 @@ adapter (template) they use by using the ``app`` and ``system`` key like:
85
85
// config/packages/cache.php
86
86
use Symfony\Config\FrameworkConfig;
87
87
88
- return static function (FrameworkConfig $framework) {
88
+ return static function (FrameworkConfig $framework): void {
89
89
$framework->cache()
90
90
->app('cache.adapter.filesystem')
91
91
->system('cache.adapter.system')
@@ -163,7 +163,7 @@ will create pools with service IDs that follow the pattern ``cache.[type]``.
163
163
// config/packages/cache.php
164
164
use Symfony\Config\FrameworkConfig;
165
165
166
- return static function (FrameworkConfig $framework) {
166
+ return static function (FrameworkConfig $framework): void {
167
167
$framework->cache()
168
168
// Only used with cache.adapter.filesystem
169
169
->directory('%kernel.cache_dir%/pools')
@@ -264,7 +264,7 @@ You can also create more customized pools:
264
264
// config/packages/cache.php
265
265
use Symfony\Config\FrameworkConfig;
266
266
267
- return static function (FrameworkConfig $framework) {
267
+ return static function (FrameworkConfig $framework): void {
268
268
$cache = $framework->cache();
269
269
$cache->defaultMemcachedProvider('memcached://localhost');
270
270
@@ -444,7 +444,7 @@ and use that when configuring the pool.
444
444
use Symfony\Component\DependencyInjection\ContainerBuilder;
445
445
use Symfony\Config\FrameworkConfig;
446
446
447
- return static function (ContainerBuilder $container, FrameworkConfig $framework) {
447
+ return static function (ContainerBuilder $container, FrameworkConfig $framework): void {
448
448
$framework->cache()
449
449
->pool('cache.my_redis')
450
450
->adapters(['cache.adapter.redis'])
@@ -524,7 +524,7 @@ Symfony stores the item automatically in all the missing pools.
524
524
// config/packages/cache.php
525
525
use Symfony\Config\FrameworkConfig;
526
526
527
- return static function (FrameworkConfig $framework) {
527
+ return static function (FrameworkConfig $framework): void {
528
528
$framework->cache()
529
529
->pool('my_cache_pool')
530
530
->defaultLifetime(31536000) // One year
@@ -616,7 +616,7 @@ to enable this feature. This could be added by using the following configuration
616
616
// config/packages/cache.php
617
617
use Symfony\Config\FrameworkConfig;
618
618
619
- return static function (FrameworkConfig $framework) {
619
+ return static function (FrameworkConfig $framework): void {
620
620
$framework->cache()
621
621
->pool('my_cache_pool')
622
622
->tags(true)
@@ -670,7 +670,7 @@ achieved by specifying the adapter.
670
670
// config/packages/cache.php
671
671
use Symfony\Config\FrameworkConfig;
672
672
673
- return static function (FrameworkConfig $framework) {
673
+ return static function (FrameworkConfig $framework): void {
674
674
$framework->cache()
675
675
->pool('my_cache_pool')
676
676
->tags('tag_pool')
0 commit comments