FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Provide the 'TaskExecution' object in the handle method by smalot · Pull Request #34 · php-task/php-task · GitHub

Provide the 'TaskExecution' object in the handle method - #34

Open
smalot wants to merge 1 commit into
php-task:masterfrom
smalot:master
Open

Provide the 'TaskExecution' object in the handle method#34
smalot wants to merge 1 commit into
php-task:masterfrom
smalot:master

Conversation

smalot commented Apr 17, 2017

Copy link
Copy Markdown

Related to the #33

wachterjohannes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

thanks for contribution. may i ask where you use this library?


try {
return $handler->handle($execution->getWorkload());
return $handler->handle($execution->getWorkload(), $execution);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This would lead into an "optional" argument? I would prefer a solution which the execution exists also in the interface. it is a BC-break but ok when you change this PR to develop.

Copy link
Copy Markdown
Member

@smalot I have thought deeper about this feature and I think your solution is a good way to keep BC. Could you please update this PR? I would like to release 1.1 soon.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL