| 1 | <?php |
||
| 3 | class App |
||
|
|
|||
| 4 | { |
||
| 5 | |||
| 6 | private $settings = array(); |
||
| 7 | |||
| 8 | private static $_instance = null; |
||
| 9 | |||
| 10 | private function __construct() |
||
| 14 | |||
| 15 | protected function __clone() |
||
| 19 | |||
| 20 | static function getModule($name, array $params = []) |
||
| 29 | |||
| 30 | static public function getInstance() |
||
| 37 | |||
| 38 | public function import($key,$value) |
||
| 42 | |||
| 43 | public function load($key) |
||
| 47 | } |
||
| 48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.