You are here

monolog.install in Monolog 8

Same filename and directory in other branches
  1. 6 monolog.install
  2. 7 monolog.install
  3. 2.x monolog.install

Install, update, and uninstall functions for the Monolog module.

File

monolog.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the Monolog module.
 */

/**
 * Implements hook_requirements().
 */
function monolog_requirements($phase) {
  $requirements = [];
  if ($phase == 'install') {
    if (!class_exists('\\Monolog\\Logger')) {
      $requirements['monolog_library'] = [
        'description' => t('The Monolog module requires the monolog/monolog library. Make sure the Monolog package is installed via Composer.'),
        'severity' => REQUIREMENT_ERROR,
      ];
    }
  }
  return $requirements;
}

Functions

Namesort descending Description
monolog_requirements Implements hook_requirements().