[Configuration] Throw exception creating objects of this class
This class only provides static functions.
This commit is contained in:
parent
85685b7758
commit
91f7405297
1 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue