mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Use FrontEndFileHandler as a singleton
This commit is contained in:
parent
df1c365872
commit
5ccd4f68d9
2 changed files with 21 additions and 2 deletions
|
|
@ -59,13 +59,32 @@ class FrontEndFileHandler extends Handler
|
|||
protected $_log_enabled = false;
|
||||
protected $_log_entries = [];
|
||||
|
||||
/**
|
||||
* Singleton
|
||||
*/
|
||||
protected static $_instance = null;
|
||||
|
||||
/**
|
||||
* Get singleton instance
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public static function getInstance(): self
|
||||
{
|
||||
if (self::$_instance === null)
|
||||
{
|
||||
self::$_instance = new self();
|
||||
}
|
||||
return self::$_instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check SSL
|
||||
*
|
||||
* @return bool If using ssl returns true, otherwise returns false.
|
||||
* @deprecated
|
||||
*/
|
||||
public function isSsl()
|
||||
public static function isSsl()
|
||||
{
|
||||
return \RX_SSL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue