HomeDevCentral

New interface: RunnableWithContext

Description

New interface: RunnableWithContext

Objects implementing this interface can initialize themselves and
execute a task they represent, with a context as parameter.

To implement the interface, the following method have to be implemented:
public static function Run (Context $context);

It's not expected it returns the instanced object.

Details

Provenance
derecksonAuthored on Jan 26 2014, 20:39
derecksonPushed on Oct 17 2025, 19:49
Parents
rOBSIDIAN3a6e06cf4fb8: Adding interface ObjectDeserializable to autoloader
Branches
Unknown
Tags
Unknown

Event Timeline