mglaman/drupal-memory-kernel

Provides a DrupalKernel that uses an in-memory SQLite database

1.0.0 2022-10-07 12:35 UTC

This package is auto-updated.

Last update: 2024-04-07 06:31:02 UTC


README

Provides a DrupalKernel that uses an in-memory SQLite database

Usage

$kernel = MemoryKernelFactory::get(
    environment: 'testing',
    autoloader: require __DIR__ . '/../vendor/autoload.php',
    modules: [
        'user' => 0,
        'serialization' => 0,
    ],
);

Now you can interact with the Drupal kernel and its service container!