Skip to content

Deprecate module initialisation #7

@lenton

Description

@lenton

Now that transparent extension is to be deprecated, the module initialisation feature is the only thing holding our modules back from being standard composer packages. The use of init.php unnecessarily couples packages to the Kohana framework making them unusable without this cascading filesystem package.

In Kohana 4.0 there would be no such concept as a 'module' any more, only normal composer packages which are optionally registered in the CFS!

Replacement

Initialisation needed for a class to function correctly should take place in its own constructor. Any other exceptional initialisation (such as needing to be run before any classes have been instantiated) has to be done by the user as part of the installation process of that package.

Targeted Version

Deprecation: 0.1 (Kohana 3.4)
Removal: 1.0 (Kohana 4.0)

Implementation

The ModulesInitializer class and interface will be marked as deprecated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions