1 | <?php |
||
3 | class App{ |
||
|
|||
4 | |||
5 | private $settings = array(); |
||
6 | |||
7 | private static $_instance = null; |
||
8 | |||
9 | private function __construct(){ |
||
12 | |||
13 | protected function __clone(){ |
||
16 | |||
17 | /** |
||
18 | * Вызов модуля |
||
19 | * @param type $name |
||
20 | * @param array $params |
||
21 | * @return string |
||
22 | */ |
||
23 | public static function getModule($name, array $params = []){ |
||
33 | |||
34 | public static function getInstance(){ |
||
40 | |||
41 | public function import($key, $value){ |
||
44 | |||
45 | public function load($key){ |
||
48 | } |
||
49 |
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.