定制 drufony/kernel-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drufony/kernel-module

Composer 安装命令:

composer require drufony/kernel-module

包简介

Symfony Kernel inside a Drupal site

README 文档

README

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.

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.

Usage

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

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

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.

Use drush app to use your Symfony kernel's console commands.

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

Output of drush app

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-07