29 if (isset($args[0]) && !empty($args[0]) && isset($args[1]) && !empty($args[1])) {
30 $onContent =
'LoadModule ' . $args[0];
31 $offContent =
'#LoadModule ' . $args[0];
33 $httpdContent = file_get_contents(
$bearsamppBins->getApache()->getConf());
34 if ($args[1] == self::SWITCH_ON) {
35 $httpdContent = str_replace($offContent, $onContent, $httpdContent);
36 } elseif ($args[1] == self::SWITCH_OFF) {
37 $httpdContent = str_replace($onContent, $offContent, $httpdContent);
40 file_put_contents(
$bearsamppBins->getApache()->getConf(), $httpdContent);