This package contains interfaces that are useful in describing modules and their attributes and behaviour.
ModuleInterface- The interface for a module. A module is an object that represents an application fragment. Modules are prepared usingsetup(), which returns aServiceProviderInterfaceinstance that the application may consume, and invoked usingrun().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.
-
PHP: <= 7.0 | < 7.4
Officially supports at least up to php 7.3.x. Should be compatible with PHP 7.x.