Skip to main content

GravityKit\GravityMigrate\Migration\BundleInspection

What a bundle carries, and whether this site could import it.

Reads the archive in place: nothing is staged, extracted, or written.

Since: %ver%

Source: src/Migration/BundleInspection.php:22

Details

  • Kind: class
  • Namespace: GravityKit\GravityMigrate\Migration

Methods

MethodDescription
of()What the bundle carries, and what this site would make of it.

Method Reference

of()

public static function of( string $path, ?callable $is_reachable=null )

What the bundle carries, and what this site would make of it.

Parameters

NameTypeDefaultDescription
$pathstringThe bundle on this server.
$is_reachablecallable | nullnullGiven the source URL, whether this site could fetch from it. Defaults to the check the IMPORT applies, which is the only answer worth having -- passed in so the rule can be exercised without booting the import engine.

Returns

Since: %ver%

Source: src/Migration/BundleInspection.php:61