This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from juriansluiman/update-dep
Raise minimum dependency
- Loading branch information
Showing
75 changed files
with
265 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,87 @@ | ||
<?php | ||
|
||
return array( | ||
'service_manager' => array( | ||
'factories' => array( | ||
'SlmQueue\Job\JobPluginManager' => 'SlmQueue\Factory\JobPluginManagerFactory', | ||
'SlmQueue\Listener\StrategyPluginManager' => 'SlmQueue\Factory\StrategyPluginManagerFactory', | ||
'SlmQueue\Queue\QueuePluginManager' => 'SlmQueue\Factory\QueuePluginManagerFactory' | ||
), | ||
), | ||
use SlmQueue\Factory\JobPluginManagerFactory; | ||
use SlmQueue\Factory\QueueControllerPluginFactory; | ||
use SlmQueue\Factory\QueuePluginManagerFactory; | ||
use SlmQueue\Factory\StrategyPluginManagerFactory; | ||
use SlmQueue\Job\JobPluginManager; | ||
use SlmQueue\Queue\QueuePluginManager; | ||
use SlmQueue\Strategy\AttachQueueListenersStrategy; | ||
use SlmQueue\Strategy\Factory\AttachQueueListenersStrategyFactory; | ||
use SlmQueue\Strategy\Factory\LogJobStrategyFactory; | ||
use SlmQueue\Strategy\FileWatchStrategy; | ||
use SlmQueue\Strategy\InterruptStrategy; | ||
use SlmQueue\Strategy\LogJobStrategy; | ||
use SlmQueue\Strategy\MaxMemoryStrategy; | ||
use SlmQueue\Strategy\MaxPollingFrequencyStrategy; | ||
use SlmQueue\Strategy\MaxRunsStrategy; | ||
use SlmQueue\Strategy\ProcessQueueStrategy; | ||
use SlmQueue\Strategy\StrategyPluginManager; | ||
|
||
'controller_plugins' => array( | ||
'factories' => array( | ||
'queue' => 'SlmQueue\Factory\QueueControllerPluginFactory' | ||
), | ||
), | ||
return [ | ||
'service_manager' => [ | ||
'factories' => [ | ||
JobPluginManager::class => JobPluginManagerFactory::class, | ||
StrategyPluginManager::class => StrategyPluginManagerFactory::class, | ||
QueuePluginManager::class => QueuePluginManagerFactory::class | ||
], | ||
], | ||
|
||
'slm_queue' => array( | ||
'controller_plugins' => [ | ||
'factories' => [ | ||
'queue' => QueueControllerPluginFactory::class | ||
], | ||
], | ||
|
||
'slm_queue' => [ | ||
/** | ||
* Worker Strategies | ||
*/ | ||
'worker_strategies' => array( | ||
'default' => array( // per worker | ||
'SlmQueue\Strategy\AttachQueueListenersStrategy', // attaches strategies per queue | ||
'SlmQueue\Strategy\MaxRunsStrategy' => array('max_runs' => 100000), | ||
'SlmQueue\Strategy\MaxMemoryStrategy' => array('max_memory' => 100 * 1024 * 1024), | ||
'SlmQueue\Strategy\InterruptStrategy', | ||
), | ||
'queues' => array( // per queue | ||
'default' => array( | ||
'SlmQueue\Strategy\ProcessQueueStrategy', | ||
) | ||
), | ||
), | ||
'worker_strategies' => [ | ||
'default' => [ // per worker | ||
AttachQueueListenersStrategy::class, // attaches strategies per queue | ||
MaxRunsStrategy::class => ['max_runs' => 100000], | ||
MaxMemoryStrategy::class => ['max_memory' => 100 * 1024 * 1024], | ||
InterruptStrategy::class, | ||
], | ||
'queues' => [ // per queue | ||
'default' => [ | ||
ProcessQueueStrategy::class, | ||
] | ||
], | ||
], | ||
|
||
/** | ||
* Queue configuration | ||
*/ | ||
'queues' => array(), | ||
'queues' => [], | ||
|
||
/** | ||
* Job manager configuration | ||
*/ | ||
'job_manager' => array(), | ||
'job_manager' => [], | ||
|
||
/** | ||
* Queue manager configuration | ||
*/ | ||
'queue_manager' => array(), | ||
'queue_manager' => [], | ||
|
||
/** | ||
* Strategy manager configuration | ||
*/ | ||
'strategy_manager' => array( | ||
'invokables' => array( | ||
'SlmQueue\Strategy\ProcessQueueStrategy' => 'SlmQueue\Strategy\ProcessQueueStrategy', | ||
'SlmQueue\Strategy\InterruptStrategy' => 'SlmQueue\Strategy\InterruptStrategy', | ||
'SlmQueue\Strategy\MaxRunsStrategy' => 'SlmQueue\Strategy\MaxRunsStrategy', | ||
'SlmQueue\Strategy\MaxMemoryStrategy' => 'SlmQueue\Strategy\MaxMemoryStrategy', | ||
'SlmQueue\Strategy\FileWatchStrategy' => 'SlmQueue\Strategy\FileWatchStrategy', | ||
'SlmQueue\Strategy\MaxPollingFrequencyStrategy' => 'SlmQueue\Strategy\MaxPollingFrequencyStrategy', | ||
), | ||
'factories' => array( | ||
'SlmQueue\Strategy\AttachQueueListenersStrategy' => 'SlmQueue\Strategy\Factory\AttachQueueListenersStrategyFactory', | ||
'SlmQueue\Strategy\LogJobStrategy' => 'SlmQueue\Strategy\Factory\LogJobStrategyFactory', | ||
) | ||
), | ||
) | ||
); | ||
'strategy_manager' => [ | ||
'invokables' => [ | ||
ProcessQueueStrategy::class => ProcessQueueStrategy::class, | ||
InterruptStrategy::class => InterruptStrategy::class, | ||
MaxRunsStrategy::class => MaxRunsStrategy::class, | ||
MaxMemoryStrategy::class => MaxMemoryStrategy::class, | ||
FileWatchStrategy::class => FileWatchStrategy::class, | ||
MaxPollingFrequencyStrategy::class => MaxPollingFrequencyStrategy::class, | ||
], | ||
'factories' => [ | ||
AttachQueueListenersStrategy::class => AttachQueueListenersStrategyFactory::class, | ||
LogJobStrategy::class => LogJobStrategyFactory::class, | ||
] | ||
], | ||
] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.