mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 05:40:24 +02:00
[Configuration] Throw exception creating objects of this class
This class only provides static functions.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
*
|
||||
* This class implements a configuration module for RSS-Bridge.
|
||||
*
|
||||
* @todo Throw an exception if the caller tries to create objects of this class.
|
||||
* @todo Make this class final.
|
||||
*/
|
||||
class Configuration {
|
||||
@@ -45,6 +44,15 @@ class Configuration {
|
||||
*/
|
||||
public static $config = null;
|
||||
|
||||
/**
|
||||
* Throw an exception when trying to create a new instance of this class.
|
||||
*
|
||||
* @throws \LogicException if called.
|
||||
*/
|
||||
public function __construct(){
|
||||
throw new \LogicException('Can\'t create object of this class!');
|
||||
}
|
||||
|
||||
/**
|
||||
* Verifies the current installation of RSS-Bridge and PHP.
|
||||
*
|
||||
|
Reference in New Issue
Block a user