Hi,
I'm porting a XF1 addon to XF2. I've created the new addon via the CLI tool which created it in
Here is my Visitor.php that is in that directory:
Everytime I try to add the code event listener for
What am I missing?
Thank you
I'm porting a XF1 addon to XF2. I've created the new addon via the CLI tool which created it in
src/addons/MyCustomStuff/Visitor/
Here is my Visitor.php that is in that directory:
PHP:
<?php
namespace MyCustomStuff\Visitor;
class Visitor
{
public static function visitor_setup(\XF\Entity\User &$visitor) {
}
}
Everytime I try to add the code event listener for
visitor_setup
I get the invalid class error even though my addon is selected.What am I missing?
Thank you