public __construct ( $dsn = FALSE ) : object | ||
$dsn | bool|string | |
리턴 | object |
function __construct($dsn = FALSE)
{
if ($dsn) {
$this->load($dsn);
}
}
/** * Check for existence of the wincache extension This method cannot be invoked externally. The driver must * be instantiated using the `Cache::instance()` method. * * @param array configuration * @throws Kohana_Cache_Exception */ protected function __construct(array $config) { if (!extension_loaded('wincache')) { throw new Kohana_Cache_Exception('PHP wincache extension is not available.'); } parent::__construct($config); }