2017 © Pedro Peláez
 

drupal-module kernel-module

Symfony Kernel inside a Drupal site

image

drufony/kernel-module

Symfony Kernel inside a Drupal site

  • Saturday, August 8, 2015
  • by bangpound
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Symfony Kernel

Embed a Symfony Kernel in your Drupal application. When a site visitor requests a Symfony route, the kernel handles the request inside a Drupal page callback., (*1)

Normal page delivery can be short circuited entirely so that the Symfony response is always sent, but the normal arrangement is that HTML responses are embedded inside Drupal pages as the $content variable in page.tpl.php. Non-HTML responses are sent directly to the user., (*2)

Usage

Implement hook_kernel_info() and name your Symfony kernel app (only one is supported)., (*3)

The kernel class must be autoloadable (unlike in Symfony's front controllers which include it). Put it in a module's info file., (*4)

name = My awesome Symfony application
core = 7.x
dependencies[] = kernel
files[] = app/AppKernel.php

The app and src directories in this module are a starting point for your own project., (*5)

Use drush app to use your Symfony kernel's console commands., (*6)

To do

Known issues

  • Symfony web profiler should be disabled in your kernel. It cannot offer an accurate picture of your requests and responses anyway!
  • Assetic is hard to use. You can't use the Assetic controller, but you can dump assets and use them from Drupal. Documentation forthcoming.

Screenshots

Drupal running the Symfony Acme Demo bundle, (*7)

Output of <code>drush app</code>, (*8)

The Versions

08/08 2015

dev-master

9999999-dev

Symfony Kernel inside a Drupal site

  Sources   Download

MIT

08/08 2015

dev-develop

dev-develop

Symfony Kernel inside a Drupal site

  Sources   Download

MIT