mglaman / wasm-drupal

Drupal in WASM
https://wasm-drupal.mglaman.dev/
MIT License
33 stars 6 forks source link

Disable Drupal requirement check for OPcache extension #83

Open mglaman opened 3 months ago

mglaman commented 3 months ago

see #45

mglaman commented 2 months ago
// fake hook to silence runtime limitations.
function system_requirements_alter(array &$requirements): void {
    $requirements['php_opcache']['severity'] = REQUIREMENT_OK;
    $requirements['limited_date_range']['severity'] = REQUIREMENT_OK;
}

this worked but isn't permanent

mglaman commented 2 months ago

This patch allows silencing the warning: https://github.com/mglaman/wasm-drupal/blob/main/patches/system-reqs-wasm.patch