Skip to content
Snippets Groups Projects
Commit 72d19606 authored by Ankit Pathak's avatar Ankit Pathak Committed by Bojan Bogdanovic
Browse files

Issue #3460689: Unkown method writeWebConfig fix.

parent 14aad400
Branches
Tags
1 merge request!137Issue #3460689: Unkown method writeWebConfig fix.
Pipeline #295802 failed
......@@ -73,7 +73,12 @@ class KeyGeneratorService {
$this->validator->validateNotFilePublicPath([$dir_path]);
FileSecurity::writeHtaccess($dir_path);
FileSecurity::writeWebConfig($dir_path);
// As writeWebConfig method is deprecated and removed from D11.
// Also drupal dropped IIS support which require web.config so its ideal
// to have a check and handle the backward compatibility.
if (method_exists(FileSecurity::class, 'writeWebConfig')) {
FileSecurity::writeWebConfig($dir_path);
}
// Create Keys array.
$keys = KeyGenerator::generateKeys();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment