Skip to content

Add Drupal framework support #3

@jeffleyd

Description

@jeffleyd

Description

Add dedicated Drupal support to the DDLess engine.

What's needed

Three files following the existing framework pattern:

  • src/frameworks/drupal/http_request.php — HTTP handler with Drupal bootstrap
  • src/frameworks/drupal/method_executor.php — Method execution via Drupal's service container
  • src/frameworks/drupal/task_runner.php — Task runner with full Drupal context

Notes

Drupal is built on top of Symfony components (HttpKernel, DependencyInjection, Routing, EventDispatcher). The existing Symfony support in src/frameworks/symfony/ may be partially reusable for the HTTP handler and DI container access. However, Drupal has its own bootstrap process (DrupalKernel), module system, and hook architecture that will need dedicated handling.

Key differences from Symfony:

  • Bootstrap uses DrupalKernel::createFromRequest() instead of Symfony's Kernel
  • Service container is accessed via \Drupal::getContainer() or \Drupal::service()
  • Drupal's module/hook system adds layers that don't exist in vanilla Symfony

Reference

See CONTRIBUTING.md for the step-by-step guide on adding a new framework.
Existing implementations in src/frameworks/symfony/ will be the closest starting point.

Labels

enhancement, good first issue, help wanted

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions