Adds a mapping to observe $observerClass subjects with $observableClass observer/listener, attaching it on creation with $params on $observableClass instance creations
Signature
public function addObserverClassToClass(string
$observerClass,
string
$observableClass,
array
$paramsĀ )
Parameters
$observerClass
The name of the observer class (implementing JObserverInterface)
$observableClass
The name of the observable class (implementing JObservableInterface)
$params
The params to give to the JObserverInterface::createObserver() function, or false to remove mapping