You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
14
extend/app_alipay/lotusphp_runtime/Cache/CacheAdapterFactory.php
Executable file
14
extend/app_alipay/lotusphp_runtime/Cache/CacheAdapterFactory.php
Executable file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
class LtCacheAdapterFactory
|
||||
{
|
||||
public function getConnectionAdapter($adapter)
|
||||
{
|
||||
$adapterClassName = "LtCacheAdapter" . ucfirst($adapter);
|
||||
if(!class_exists($adapterClassName))
|
||||
{
|
||||
trigger_error("Invalid adapter: $adapter");
|
||||
return null;
|
||||
}
|
||||
return new $adapterClassName;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user