定制 saga/dic-module 二次开发

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

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

saga/dic-module

最新稳定版本:7.1.7

Composer 安装命令:

composer require saga/dic-module

包简介

This module provides the Dependency Injection Container integration in Drupal 7.

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version

Using this Drupal module, you can use the Symfony Dependency Injection Container in your Drupal 7 modules. This will help you writing custom Drupal modules in a more object-oriented, future-proof and maintainable way.

Composer is required in your project and this module expects a composer.json file in the root of your Drupal installation.

Installation and Configuration

  • Make sure Composer is installed.
  • Add a composer.json file to the root of your Drupal 7 installation with the following content:
{
  "require": {
    "php": ">=5.3.0",
    "composer/installers": "~1.0",
    "saga/dic-module": "~7.1"
  },
  "extra": {
    "installer-paths": {
      "sites/all/modules/vendor/{$name}": ["type:drupal-module"]
    }
  }
}
  • In terminal, go to the root of your Drupal 7 sites (where the composer.json file lives) and execute "composer install".
  • The DIC module will now be available in "sites/all/modules/vendor/dic" and is ready to be installed using the regular module installation procedure.
  • Make sure that the "/vendor" and "sites/*/modules/vendor" folders are added to the .gitignore, you don't want these folders in your VCS.

Creating custom modules

If you want to create custom modules that use the DIC module, make sure that the classes in your module are autoloaded correctly. You can use several methods to do this:

Sponsors

This module is sponsored by Saga Consulting Group.

License

This module is licensed under GENERAL PUBLIC LICENSE Version 2, June 1991. See the bundled LICENSE file for details.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固