CodeExplorer PhpArrayAdapterWrapper example
if (file_exists(sys_get_temp_dir().'/symfony-cache'
)) { (new Filesystem())->
remove(sys_get_temp_dir().'/symfony-cache'
);
} } public function createCachePool(int
$defaultLifetime = 0, string
$testMethod = null
): CacheItemPoolInterface
{ if ('testGetMetadata' ===
$testMethod || 'testClearPrefix' ===
$testMethod) { return new PhpArrayAdapter(self::
$file,
new FilesystemAdapter());
} return new PhpArrayAdapterWrapper(self::
$file,
new NullAdapter());
} public function testStore() { $arrayWithRefs =
[];
$arrayWithRefs[0
] = 123;
$arrayWithRefs[1
] = &
$arrayWithRefs[0
];
$object =
(object) [ 'foo' => 'bar',
'foo2' => 'bar2',
];