File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1717// Include phpFastCache autoloader
1818require __DIR__ . '/../src/autoload.php ' ;
1919
20- // Not provided by phpFastCache
21- // you have to do it yourself
22- require __DIR__ . 'YOUR_PROJECT/fig_cache_interfaces.php ' ;
23-
2420$ InstanceCache = CacheManager::getInstance ('memcache ' );
2521
2622/**
Original file line number Diff line number Diff line change 3636 trigger_error ('Cannot locate the Psr/Cache files ' , E_USER_ERROR );
3737 return ;
3838 }
39- }else {
40- // Unsupported entity
41- return ;
4239 }
4340
4441 $ entity = str_replace ('\\' , '/ ' , $ entity );
Original file line number Diff line number Diff line change 1515if (!class_exists ('phpFastCache\CacheManager ' )) {
1616 echo "[FAIL] Autoload failed to find the CacheManager \n" ;
1717 $ status = 255 ;
18+ }else {
19+ echo "[PASS] Autoload successfully found the CacheManager \n" ;
1820}
19- echo "[PASS] Autoload successfully found the CacheManager \n" ;
2021
2122exit ($ status );
You can’t perform that action at this time.
0 commit comments