@@ -119,10 +119,19 @@ public static function getInstance(string $driver, ?ConfigurationOptionInterface
119
119
ExtensionManager::loadExtension ($ driver );
120
120
return CacheManager::getInstance ($ driver , $ config , $ instanceId );
121
121
} catch (PhpfastcacheExtensionNotFoundException ) {
122
+ // Temporary check until v10
123
+ $ extensionWarning = '' ;
124
+ if (in_array ($ driver , ['Arangodb ' , 'Couchdb ' , 'Dynamodb ' , 'Firestore ' , 'Mongodb ' , 'Solr ' ], true )) {
125
+ $ extensionWarning .= sprintf (
126
+ 'However, it seems that you are using a driver which is now an extension. Run the following command to solve this issue: %s ' ,
127
+ sprintf ('composer install phpfastcache/%s-extension ' , strtolower ($ driver ))
128
+ );
129
+ }
122
130
throw new PhpfastcacheDriverNotFoundException (sprintf (
123
- 'The driver "%s" does not exist or does not implement %s ' ,
131
+ 'The driver "%s" does not exist or does not implement %s. %s ' ,
124
132
$ driver ,
125
- ExtendedCacheItemPoolInterface::class
133
+ ExtendedCacheItemPoolInterface::class,
134
+ $ extensionWarning ,
126
135
));
127
136
}
128
137
}
0 commit comments