parseConnectionInfo example


  final public static function addConnectionInfo($key$target, array $info$class_loader = NULL, $app_root = NULL) {
    if (empty(self::$databaseInfo[$key][$target])) {
      $info = self::parseConnectionInfo($info);
      self::$databaseInfo[$key][$target] = $info;

      // If the database driver is provided by a module, then its code may need       // to be instantiated prior to when the module's root namespace is added       // to the autoloader, because that happens during service container       // initialization but the container definition is likely in the database.       // Therefore, allow the connection info to specify an autoload directory       // for the driver.       if (isset($info['autoload']) && $class_loader && $app_root) {
        $class_loader->addPsr4($info['namespace'] . '\\', $app_root . '/' . $info['autoload']);
      }
    }
Home | Imprint | This part of the site doesn't use cookies.