$extOptions ) { if ( $extensionRegistry->isLoaded( $ext ) ) { foreach ( $extOptions as $key => $values ) { if ( !isset( $info[$key] ) ) { $info[$key] = []; } // TODO: Support non-array properties $info[$key] = array_merge( $info[$key], (array)$values ); } } } } $class = $info['class'] ?? FileModule::class; return new $class( $info ); } }