Hello,
to enrich the persited action recorded before within my plugin, I need to read from the $request parameter of the Tracker.recordAction hook.
unfortunately this parameter is protected and due to that cannot be used.
As a workaround I am currently using ReflectionClass to make this param accessible:
private function getPrivateProperyFromObject($obj, $property) {
$reflector = new \ReflectionClass($obj);
$classProperty = $reflector->getProperty($property);
$classProperty->setAccessible(true);
return $classProperty->getValue($obj);
}
Is there another way to retrieve the information?
Thank’s in advance!