Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.69 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.69 KB

Dhii - Module Interface

Build Status Code Climate Test Coverage Latest Stable Version This package complies with Dhii standards

Details

This package contains interfaces that are useful in describing modules and their attributes and behaviour.

Interfaces

  • ModuleInterface - The interface for a module. A module is an object that represents an application fragment. Modules are prepared using setup(), which returns a ServiceProviderInterface instance that the application may consume, and invoked using run().
  • FactoryInterface - The interface for a service factory. Implementations of this interface can be used instead of anonymous functions when defining service providers. Implementations can provide generic service definition logic, reducing code repetition, as well as allow for static analysis on modules by exposing the keys of dependent services.

Requirements

  • PHP: <= 7.0 | < 7.4

    Officially supports at least up to php 7.3.x. Should be compatible with PHP 7.x.