2017 © Pedro Peláez
 

drupal-module dic-module

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

image

saga/dic-module

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

  • Saturday, September 19, 2015
  • by Ozmodiar
  • Repository
  • 4 Watchers
  • 7 Stars
  • 11,309 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 9 Versions
  • 3 % Grown

The README.md

DIC - Dependency Injection Container

Build Status Latest Stable Version Total Downloads Latest Unstable Version, (*1)

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., (*2)

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

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:, (*4)

Sponsors

This module is sponsored by Saga Consulting Group., (*5)

License

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

The Versions

19/09 2015

dev-master

9999999-dev

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

  Sources   Download

The Requires

 

The Development Requires

01/09 2015

7.1.7

7.1.7.0

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

  Sources   Download

The Requires

 

The Development Requires

03/06 2015

7.1.6

7.1.6.0

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

  Sources   Download

The Requires

 

The Development Requires

27/03 2015

7.1.5

7.1.5.0

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

  Sources   Download

The Requires

 

The Development Requires

26/03 2015

7.1.4

7.1.4.0

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

  Sources   Download

The Requires

 

The Development Requires

08/03 2015

7.1.3

7.1.3.0

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

  Sources   Download

The Requires

 

The Development Requires

24/11 2014

7.1.2

7.1.2.0

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

  Sources   Download

The Requires

 

The Development Requires

06/11 2014

7.1.1

7.1.1.0

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

  Sources   Download

The Requires

 

05/11 2014

7.1.0

7.1.0.0

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

  Sources   Download

The Requires