@@ -153,6 +153,9 @@ discard block |
||
| 153 | 153 | self::ChmodPermissionsSetter($event, $http_user, $path); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string|null $http_user |
|
| 158 | + */ |
|
| 156 | 159 | public static function SetfaclPermissionsSetter(Event $event, $http_user, $path) { |
| 157 | 160 | if (!is_dir($path)) |
| 158 | 161 | mkdir($path, 0777, true); |
@@ -162,6 +165,9 @@ discard block |
||
| 162 | 165 | self::runProcess($event, 'setfacl -d -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path); |
| 163 | 166 | } |
| 164 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string|null $http_user |
|
| 170 | + */ |
|
| 165 | 171 | public static function ChmodPermissionsSetter(Event $event, $http_user, $path) { |
| 166 | 172 | if (!is_dir($path)) |
| 167 | 173 | mkdir($path, 0777, true); |
@@ -181,6 +187,9 @@ discard block |
||
| 181 | 187 | } |
| 182 | 188 | } |
| 183 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string $commandline |
|
| 192 | + */ |
|
| 184 | 193 | public static function runProcess(Event $event, $commandline) { |
| 185 | 194 | if ($event->getIO()->isVerbose() === TRUE) |
| 186 | 195 | $event->getIO()->write(sprintf('Running <info>%s</info>', $commandline)); |