PHP Classes

File: .changelog/CHANGELOG-0.4.0.md

Recommend this page to a friend!
  Packages of Axel Pardemann   PHP Objects Extensions   .changelog/CHANGELOG-0.4.0.md   Download  
File: .changelog/CHANGELOG-0.4.0.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Objects Extensions
Add functions to objects using another class
Author: By
Last change:
Date: 9 months ago
Size: 958 bytes
 

Contents

Class file image Download

Release 0.4.0

New features and small improvements.

Added

  • The extension methods can now be guarded (using the new `protected static $guarded_extension` property) to prevent re-registering or unregistering them once they are registered. The declaration of this new property is optional in your classes, but if defined you can enlist your guarded extension methods and the trait will take this into account when registering/unregistering them. (Commit #37adf0)

Changed

  • The `registerExtensionMethod` function allows now to be given an array of names to register the callable to all of them (kind of like aliases). The extension methods are treated as a normal extension method registry, so _aliases_ are not dependant on each other. (Commit #33f410)
  • The `unregisterExtensionMethod` now also accepts an array of names to unregister multiple extension methods in batch. (Commit #33f410)

Previous: Release 0.3.0