container->set(EncryptionInterface::class, function () { return new CredentialEncryption(); }); $this->container->set(ConnectionRepositoryInterface::class, function ($c) { return new ConnectionRepository($c->get(EncryptionInterface::class)); }); } /** * @inheritDoc */ public function boot(): void { // Connection module does not hook into WordPress lifecycle on boot. } }