1 | <?php |
||
8 | class ClassyScope { |
||
|
|||
9 | |||
10 | protected static $common = null; |
||
11 | |||
12 | /** |
||
13 | * Returns basic scope |
||
14 | * |
||
15 | * @return array |
||
16 | */ |
||
17 | public static function get_scope($template_name = null) { |
||
33 | |||
34 | |||
35 | /** |
||
36 | * Extends Scope with scope that is defined in theme_name/scope folder |
||
37 | * |
||
38 | * @return array |
||
39 | */ |
||
40 | public static function extend_scope($scope, $template_name) { |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Returns Common Scope |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | public static function get_common_scope() { |
||
65 | |||
66 | /** |
||
67 | * Requires file's scope |
||
68 | * |
||
69 | * @param string $filename |
||
70 | * @return array |
||
71 | */ |
||
72 | public static function require_scope($filename) { |
||
93 | |||
94 | } |
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.