-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Queue): Add ability to dispatch job in testable way #85
Conversation
src/Queue/Concerns/UsesCommand.php
Outdated
{ | ||
private ?Command $command = null; | ||
|
||
public function setCommand(?Command $command): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chceš mít možnost resetovat command? pokud ne odebral bych otazník
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dobrý point, určitě bude zbytečné
public function execute( | ||
Job $job, | ||
?Command $command = null, | ||
Closure $setupBeforeRun = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tady bych otazník přidal, kvůli pozičnímu zadávání parametrů.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Díky upravil jsem
*/ | ||
interface UsesCommandInterface | ||
{ | ||
public function setCommand(?Command $command): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
viz výše: otazník
static fn () => Assert::assertEquals( | ||
expected: 'Test', | ||
actual: self | ||
::makeAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self
::makeAction()
je žádoucí?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsem si nevšiml, to mě musel ecs/rector zformátovat, původně to bylo na zarovnané pěkně s ->
, očividně to umí jenom když je $this
pokud bych měl pěkně $this tak to bude vypadat hezky takto se mi to nedaří hezky zarovnat.
Pohrál jsem si stím, není to co bych chtěl ale je to dostačující
@h4kuna Pusnuto |
No description provided.