1 | <?php |
||
5 | class CodeReviewAutoloader { |
||
|
|||
6 | |||
7 | private $classMap = array(); |
||
8 | |||
9 | 1 | public function __construct($basePath = null) { |
|
15 | |||
16 | /** |
||
17 | * Not fully PSR-0 compatible, but good enough for this particular plugin |
||
18 | * |
||
19 | * @param string $basePath |
||
20 | * @param string $prefix |
||
21 | */ |
||
22 | 1 | private function registerDirectory($basePath, $prefix = '') { |
|
40 | |||
41 | /** |
||
42 | * @param string $className |
||
43 | * @return bool |
||
44 | */ |
||
45 | 7 | public function load($className) { |
|
51 | |||
52 | /** |
||
53 | * @return bool |
||
54 | */ |
||
55 | 1 | public function register() { |
|
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | 1 | public function unregister() { |
|
65 | |||
66 | } |
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.