Skip to content

el7cosmos/drupal-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Runtime

Integrates Drupal with Symfony Runtime.

The Runtime Component decouples the bootstrapping logic from any global state to make sure the application can run with runtimes like PHP-FPM, ReactPHP, Swoole, etc. without any changes.

Installation

If using composer>=2.2

composer config allow-plugins.symfony/runtime 1

Add drupal scaffold config

composer config --json --merge extra.drupal-scaffold.allowed-packages '["el7cosmos/drupal-runtime"]'

Add symfony runtime template

composer config extra.runtime.autoload_template vendor/el7cosmos/drupal-runtime/assets/autoload_runtime.template

Require this package

composer require el7cosmos/drupal-runtime

Your composer.json should now be something like this:

{
  "config": {
    "allow-plugins": {
      "symfony/runtime": true
    }
  },
  "extra": {
    "drupal-scaffold": {
      "allowed-packages": [
        "el7cosmos/drupal-runtime"
      ]
    },
    "runtime": {
      "autoload_template": "vendor/el7cosmos/drupal-runtime/assets/autoload_runtime.template"
    }
  }
}

You can also manually edit composer.json to match the above example.

Usage

Composer will automatically scaffold following files to use Symfony Runtime:

  • [web-root]/index.php
  • [web-root]/update.php

About

Drupal integration with Symfony Runtime

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages