Hi everyone,
I was developing a simple extension some months ago for beta.15. Now I installed a new beta.16 and installed my extension from my repo. Result: It does no work.
I was checking the changes from beta.15 to beta.16 and I can't figure out any relevant changes.
Now the fact that confuses me the most:
Contents of my extend.php file:
use Flarum\Extend;
use Flarum\Discussion\Discussion;
use Flarum\Tags\Tag;
use OxidSupport\PublicTag\Access;
return [
(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js'),
(new Extend\ModelVisibility(Discussion::class))
->scope(Access\ScopeDiscussionVisibility::class),
(new Extend\ModelVisibility(Tag::class))
->scope(Access\ScopeTagVisibility::class),
];
If I copy these contents into the global extend.php file, everything works perfectly fine. Therefore I thought my extension's extend.php isn't recognized by my Flarum instance. I added a test output to my custom extend.php. Test output was seen in frontend. The file contents are definitely executed.
Then I also realized, that my admin setting
(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js'),
works also. Therefore it looks like my extend.php is recognized and not damaged or whatever ...Ok?!
Now I'm sitting here for about two hours and have no idea what to check. Any suggestions? Any changes in beta.16 I did not understand? Any tools to verifiy the extenders?