========================================== Testing Fallback Mechanism For Ambiguous IDs: 977, 978 ==========================================
Target class [App\Services\DramaDataService] does not exist.
Illuminate\Container\Container->build(string)
Illuminate\Container\Container->resolve(string, array, boolean)
Illuminate\Foundation\Application->resolve(string, array)
Illuminate\Container\Container->make(string, array)
Illuminate\Foundation\Application->make(string, array)
vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
dev-utils/test_fallback_mechanism.php
35echo "==========================================\n";
36echo " Testing Fallback Mechanism\n";
37echo " For Ambiguous IDs: 977, 978\n";
38echo "==========================================\n\n";
39
40$dramaDataService = app(DramaDataService::class);
41
42$testIds = [977, 978, 'fr487']; // 977, 978 ambiguous, fr487 has prefix (not ambiguous)
43
44foreach ($testIds as $id) {
45 echo str_repeat('=', 70) . "\n";
46 echo "Testing ID: {$id}\n";
47 echo str_repeat('=', 70) . "\n";
48
49 // Show detection
50 $detection = BookIdDetector::detectWithConfidence($id);
51 echo "BookIdDetector: {$detection['service']} (confidence: {$detection['confidence']}%)\n";
52