refactor: optimize service instantiation and register queue components in Registrar#7
Merged
totoprayogo1916 merged 1 commit intodevelopfrom Mar 31, 2026
Merged
Conversation
totoprayogo1916
pushed a commit
that referenced
this pull request
Mar 31, 2026
workflow configs tests update phpstan update docs update var type comment update add readme update docs phpunit update update model docs update formatting fix job generation fix lang key Update rector/rector requirement from 0.18.5 to 0.18.6 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](rectorphp/rector@0.18.5...0.18.6) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> add priority to the queue cleanup fix migration fix phpstan error fixes fix add test add service return type - fixes #3 add redis handler add predis handler add redis to workflow make rector happy set ubuntu version in workflow set version for redis more tests remove redis version cs fix change namespace update docs add contributing and security info update license update readme composer update cs-fix phpstan config update refactor: fix variable types docs: add PHPDoc types chore: remove ignoreErrors fix: add missing () read options and validate them fix predis hdel update JobInterface add abstract methods to BaseHandler suppress errors referring db methods add info about contributing list contributors in the docs add CNAME fix namespace in the publish command fix typo fix: orderBy() does not support RawSql test: fix TypeError fix grammar Bump actions/setup-python from 4 to 5 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> refactor: replace loose comparisons chore: add declare_strict_types and void_return refactor: add declare(strict_types=1) and return void chore: add empty rules chore: composer require --dev phpstan/phpstan-strict-rules chore: add strictRules fix type casting more casting fixes in commands tests: add base tests for commands (#27) * add base tests for commands * fix config load * disable phpstan-strict-rules in rector.php * Revert "disable phpstan-strict-rules in rector.php" This reverts commit 5c5d115e2aae806f320b824fcb0799b6e316907a. * add rector separately * update rector version in the workflow * add suggestions from the the code review hljs support for navigation.instant update docs workflow docs: add site_url docs: remove navigation.instant.prefetch docs: add missing `.md` update phpunit workflow docs: add composer minimum-stability instructions fix phpstan issues and add more tests add license info to the files fix: connection name for used handler chore: update rector.php from devkit chore: update .github/workflows/rector.yml Bump actions/cache from 3 to 4 Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> docs: add MySQL/MariaDB versions in Requirements docs: add supproted DBs Co-authored-by: Michal Sniatala <michal@sniatala.pl> docs: add SQLite3 Co-authored-by: Michal Sniatala <michal@sniatala.pl> docs: fix markdown for mkdocs Update to PHPUnit 10 (#46) * update to phpunit 10 * fix phpunit workflow * update deptrac workflow * rector workflow update add a new condition for the reconnect call add skipLocked config Add tests for every database handler (#49) * add tests for every database handler * add permissions to the phpunit workflow * update workflow * update tests and workflow * update tests for SQLSRV * update tests * fix sqlsrv tests * update workflow * update skipLocked() method for OCI8 * update skipLocked() method for OCI8 * update tests * simplify the code as text type is deprecated in SQLSRV * fix rector * update sqlsrv extension in the workflow * froze ubuntu version * cleanup Disable strict mode for transactions (#50) * disable strict mode for transactions * update docs use Lua script to pop the task atomically (#51) * use lua script to pop the task atomically * docs update * fix phpstan * update docs * cs fix docs: add clarification for queue usage scenarios (#53) * add clarification for queue usage scenarios * fix wording Add an option to delay job execution when adding to the queue (#52) * add an option to delay job execution when adding to the queue * add delay exception test * fix phpcpd * tests: make sure the job is added to the queue with the proper delay chore: add bug report tpl (#55) feat: add support for chained jobs (#54) * feat: add support for chained jobs * phpcpd * workflow deptrac feat: add support for task locks (#60) * feat: add support for task locks * make phpcpd happy fix: remove option to use a custom config file via service (#59) feat: `Queue::push()` to return QueuePushResult instead of boolean (#62) * feat: return jobID after push instead of the bool value * fix phpcpd * feat: return QueuePushResult from push() instead of bool * add some PHPDocs to QueuePushResult class chore: update deptrac.yaml to use with deptrac/deptrac (#63) chore: fix data provider name and order by cs-fix (#64) chore: update deptrac.yaml for deptrac/deptrac (#65) feat: add Redis username authentication support (#66) - Add username config option to Redis configuration - Support both username+password and password-only auth methods - Maintain backward compatibility with existing password-only setups - Improve error messages for authentication failures Signed-off-by: Sanil Shrestha <sanil.shrestha@formbay.com.au> feat: add RabbitMQHandler (#67) * feat: RabbitMQ handler * better cleanup with tests * use AMQPConnectionConfig and AMQPConnectionFactory for connection handling docs: add @Property tags to QueueJobFailed entity (#70) * docs: add @Property tags to QueueJobFailed entity * chore: run cs-fix to fix styles feat: events (#69) * remove option to keep the done jobs * add events * fix phpstan, psalm and rector * add docs * fix check for RabbitMQ in tests * fix test namespace * fix rabbitmq workflow config * getProcessingTimeMs as int * rector updates chore: update workflow to use PHP 8.2-8.4 (#73) fix: signal registration for windows (#72) fix: add missing methods to QueueInterface and improve type declarations (#75) init esoftdream reinit (#6) refactor: optimize service instantiation and register queue components in Registrar (#7) docs: update README to reflect project rebranding, updated requirements, and expanded command documentation Please provide the changes or the files you would like me to summarize. refactor: update job template path and implement custom renderTemplate method in JobGenerator refactor: load job template via file_get_contents using autoloader path instead of view helper refactor: add void return type hint to process method in job template docs: update queue job generation and usage examples in README refactor: decouple DatabaseHandler from persistent BaseBuilder to support dynamic table configuration feat: implement ArrayAccess for Payload class to allow array-style property access refactor: make PayloadMetadata parameter nullable and add null checks in QueueWork command methods fix: format failed_at timestamp in queue:failed command output chore(deps): bump actions/cache from 4 to 5 (#3) Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump actions/checkout from 4 to 6 (#1) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> refactor: update failed queue command table columns to include exception and remove connection docs: add documentation for job priority and delay features in README feat: add queue, priority, delay, and chained jobs support to Payload class
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.