1 | <?php |
||
4 | class WebpackPageControllerExtension extends extension |
||
|
|||
5 | { |
||
6 | |||
7 | /** |
||
8 | * |
||
9 | * @var {Array} |
||
10 | */ |
||
11 | private static $webpack_enabled_themes = []; |
||
12 | |||
13 | /** |
||
14 | * |
||
15 | * @var int |
||
16 | */ |
||
17 | private static $webpack_port = 3000; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private static $webpack_distribution_folder_extension = 'dist'; |
||
25 | |||
26 | /** |
||
27 | * |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function IsNotWebpackDevServer() |
||
34 | |||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function IsWebpackDevServer() |
||
47 | |||
48 | |||
49 | /** |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function WebpackBaseURL() |
||
62 | |||
63 | public function WebpackDistributionFolderExtension() |
||
67 | |||
68 | public function WebpackFileHash($type = 'JS') |
||
82 | } |
||
83 |
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.