| 1 | <?php |
||
| 4 | class WebpackPageControllerExtension extends extension |
||
|
|
|||
| 5 | { |
||
| 6 | |||
| 7 | private static $port_for_webpack = 3000; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * |
||
| 11 | * @return bool |
||
| 12 | */ |
||
| 13 | public function IsNotWebpackDevServer() |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * |
||
| 21 | * @return bool |
||
| 22 | */ |
||
| 23 | public function IsWebpackDevServer() |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function WebpackBaseURL() |
||
| 45 | } |
||
| 46 |
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.