You are here

function service_container_module_implements_alter in Service Container 7

Same name and namespace in other branches
  1. 7.2 service_container.module \service_container_module_implements_alter()

Implements hook_module_implements_alter().

File

./service_container.module, line 32
Main module file for the service_container module.

Code

function service_container_module_implements_alter(&$implementations, $hook) {

  // Moves our hook_init() implementation to occur first so that we
  // can initialize the container.
  if ($hook == 'stream_wrappers_alter') {
    $group = $implementations['service_container'];
    unset($implementations['service_container']);
    $implementations = array(
      'service_container' => $group,
    ) + $implementations;
  }
}