Hi, I'm trying to extend the functionality of the API for 'Reset Password' similar to what the normal CS-Cart system does. But I get an error whenever I put
$event_dispatcher = Tygh::$app['event.dispatcher'];
The error being:
Class 'Tygh\Api\Entities\Tygh' not found
Does this mean I can't use the event system through the API? If I can and I'm just doing something wrong, how do I solve this problem?