title: WorkManager set up with KOIN
body: <p>I'm trying to set up work manager to do some work and I'm having trouble initializing it.
  Im using KOIN workmaanger dsl</p>
  <pre><code>implementation &quot;org.koin:koin-androidx-workmanager:2.2.0-rc-4&quot;
  </code></pre>
  <p>and my worker class looks like this</p>
  <pre><code>class NotificationsScheduler(
      private val dispatchers: AppCoroutineDispatchers,
      private val getTaskUseCase: GetTaskUseCase,
      private val context: Context,
      private val workerParameters: WorkerParameters
  ) : Worker(context, workerParameters) {
  
      override fun doWork(): Result {
      ...
      }
  </code></pre>
  <p>What I've done so far is disabled default initializer</p>
  <pre><code>&lt;provider
      android:name=&quot;androidx.work.impl.WorkManagerInitializer&quot;
      android:authorities=&quot;${applicationId}.workmanager-init&quot;
      tools:node=&quot;remove&quot; /&gt;
  </code></pre>
  <p>My worker module is set up like this</p>
  <pre><code>val workerModule = module {
      worker { NotificationsScheduler(get(), get(), get(), get()) }
  }
  </code></pre>
  <p>and it is added in list used in startKoin DSL. I've also used workManagerFactory() DSL to set up factory.</p>
  <pre><code>startKoin {
          androidContext(this@MyApplication)
          workManagerFactory()
          modules(koinModules)
      }
  </code></pre>
  <p>What I'm having trouble with, is that it crashes when app start with exception:</p>
  <pre><code> Caused by: org.koin.core.error.NoBeanDefFoundException: No definition found for class:'androidx.work.WorkerParameters'. Check your definitions!
  </code></pre>