getSourcePath()]; $cacheKey = DiscoveryCacheIdentifiers::fullDiscoveryKey($defaultPaths); echo "Checking cache key: {$cacheKey->toString()}\n\n"; // Check cache $cachedItem = $cache->get($cacheKey); if ($cachedItem !== null && $cachedItem->value !== null) { echo "✅ Cache hit!\n"; if (is_array($cachedItem->value)) { echo "📊 Analyzing array structure...\n"; // Zeige die Struktur des Arrays foreach ($cachedItem->value as $key => $value) { echo "Key: {$key}\n"; echo " Type: " . gettype($value) . "\n"; if (is_array($value)) { echo " Array keys: " . implode(', ', array_keys($value)) . "\n"; if ($key === 'routes' && isset($value['routes'])) { echo " Routes count: " . count($value['routes']) . "\n"; if (! empty($value['routes'])) { echo " First route keys: " . implode(', ', array_keys($value['routes'][0] ?? [])) . "\n"; } } if ($key === 'attributes' && isset($value['mappings'])) { echo " Mappings count: " . count($value['mappings']) . "\n"; if (! empty($value['mappings'])) { echo " Mapping types: " . implode(', ', array_keys($value['mappings'])) . "\n"; } } } elseif (is_object($value)) { echo " Object class: " . get_class($value) . "\n"; } echo "\n"; } } } else { echo "❌ No cache found\n"; } echo "Done.\n";