singleton( LoggerInterface::class, function () { return Logger::getInstance(); } ); // TemplateHandler $container->singleton( \forge12\contactform7\CF7DoubleOptIn\TemplateHandler::class, function () { return \forge12\contactform7\CF7DoubleOptIn\TemplateHandler::getInstance(); } ); // Messages $container->singleton( \forge12\contactform7\CF7DoubleOptIn\Messages::class, function () { return \forge12\contactform7\CF7DoubleOptIn\Messages::getInstance(); } ); } /** * {@inheritdoc} */ public function boot( Container $container ): void { // Initialize logger in container for debugging $container->setLogger( $container->get( LoggerInterface::class ) ); } }