October\Rain\Extension\Container

Overview

Container holds constructor logic for all extensions


Public Properties

public static array $classCallbacks

classCallbacks is used to extend the constructor of an extendable class. Eg:

Class::extend(function($obj) { })

public static array $extensionCallbacks

Used to extend the constructor of an extension class. Eg:

BehaviorClass::extend(function($obj) { })

Public Methods

public static clearExtensions()

public static clearExtensions(): void

clearExtensions clears the list of extended classes so they will be re-extended

public static extendBehavior()

public static extendBehavior($class, $callback): void

extendBehavior extends a class without including it

public static extendClass()

public static extendClass($class, $callback): void

extendClass extends a class without including it