spiral-packages / scheduler

The scheduler is a package for spiral framework. It will help to managing scheduled tasks on your server.
https://spiral.dev/docs/advanced-scheduler
MIT License
5 stars 1 forks source link

Adding CacheBootloader to the DEPENDENCIES #13

Closed msmakouz closed 1 year ago

msmakouz commented 1 year ago

If we don't manually add Spiral\Cache\Bootloader\CacheBootloader, an error has occurred:

[Spiral\Core\Exception\Container\NotFoundException]                                                                             
 Can't resolve `Spiral\Scheduler\JobsLocatorInterface`: undefined class or binding `Spiral\Cache\CacheStorageProviderInterface`.
 Container trace list:
 - action: 'resolve from binding'
   alias: 'Spiral\Scheduler\JobsLocatorInterface'
   context: 'locator'
   binding: [
     0: 'Spiral\Scheduler\JobsLocator',
     1: true
   ]
   - action: 'resolve from binding'
     alias: 'Spiral\Scheduler\JobsLocator'
     context: 'locator'
     binding: [
       0: [
         0: 'Spiral\Scheduler\Bootloader\SchedulerBootloader',
         1: 'initJobsLocator'
       ],
       1: true
     ]
     - action: 'resolve from binding'
       alias: 'Spiral\Scheduler\Mutex\JobMutexInterface'
       context: 'mutex'
       binding: [
         0: [
           0: 'Spiral\Scheduler\Bootloader\SchedulerBootloader',
           1: 'initEventMutex'
         ],
         1: true
       ]
       - action: 'autowire'
         alias: 'Spiral\Cache\CacheStorageProviderInterface'
         context: 'provider'