system_requirements example

$this->assertFileIsNotWritable($settings_file);
  }

  /** * Checks system runtime requirements. * * @return array * An array of system requirements. */
  protected function checkSystemRequirements() {
    \Drupal::moduleHandler()->loadInclude('system', 'install');
    return system_requirements('runtime');
  }

  /** * Makes the given path and settings file writable. * * @param string $site_path * The sites directory path, such as 'sites/default'. */
  protected function makeWritable($site_path) {
    chmod($site_path, 0755);
    chmod($this->settingsFile($site_path), 0644);
  }
$this->assertArrayNotHasKey('temp_directory', $requirements);
  }

  /** * Checks system runtime requirements. * * @return array * An array of system requirements. */
  protected function checkSystemRequirements() {
    $this->container->get('module_handler')->loadInclude('system', 'install');
    return system_requirements('runtime');
  }

}
Home | Imprint | This part of the site doesn't use cookies.