Skip to content
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

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

pionl
Copy link
Contributor

@pionl pionl commented Feb 27, 2024

No description provided.

{
private ?Command $command = null;

public function setCommand(?Command $command): void
Copy link
Contributor

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

Copy link
Contributor Author

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,
Copy link
Contributor

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ů.

Copy link
Contributor Author

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;
Copy link
Contributor

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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self
    ::makeAction()

je žádoucí?

Copy link
Contributor Author

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í

@pionl
Copy link
Contributor Author

pionl commented Feb 27, 2024

@h4kuna Pusnuto

@pionl pionl merged commit 046a9e3 into main Feb 28, 2024
8 checks passed
@pionl pionl deleted the queue-run-job branch February 28, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants