RSS Feed/News Having an issue extending \XF\Api\Controller\AbstractController through the XFCP_ proxy system

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,681
Points
823

Reputation:

Dear Friends,

for my addon, I extended some classes, like for example the \XF\Service\PushNotification class. For that I created an extension class, under development->Class extension, then the file extension_hint.php is created in my project, with the following:

namespace MyCompany\MyAddon\XF\Service
{
class XFCP_PushNotification extends \XF\Service\PushNotification {}
}

Then in my addon, I create a class that extends XFCP_PushNotification , and all works as expected. The functions...

Read more

Continue reading...
 
Status
Not open for further replies.
Top