Skip to content

Commit

Permalink
Add todo note
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Sep 14, 2023
1 parent 2db7885 commit 453d185
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,10 @@ private function _registerTwigExtensions(): void
*/
private function _registerFeedMeElements(): void
{
// Ensure that the plugin is enabled and exists after application initialisation.
// Ensure that the plugin is enabled and exists on application initialisation.
// https://github.com/putyourlightson/craft-campaign/issues/400
// https://github.com/putyourlightson/craft-campaign/issues/412
// TODO: replace with `Application::onInit()` in 5.0.0
Event::on(Application::class, Application::EVENT_INIT, function() {
if (Craft::$app->getPlugins()->getPlugin('feed-me') !== null) {
Event::on(FeedMeElements::class, FeedMeElements::EVENT_REGISTER_FEED_ME_ELEMENTS,
Expand Down

0 comments on commit 453d185

Please sign in to comment.