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

add runner accessors to Command #123

Merged
merged 1 commit into from
Feb 6, 2015
Merged

add runner accessors to Command #123

merged 1 commit into from
Feb 6, 2015

Conversation

brianium
Copy link
Member

@brianium brianium commented Feb 3, 2015

Fixes #121

Please note the intended 2.0 goal mentioned by #120 - once runner initialization is added to the command, we can have a default runner result of Peridot\Runner\Runner, similar to how the default loader mechanism works in the command.

@brianium
Copy link
Member Author

brianium commented Feb 3, 2015

@austinsmorris can I get your thoughts on all the things mentioned here + a merge if things seem cool to you?

*/
public function getRunner()
{
return $this->runner;
Copy link
Member

Choose a reason for hiding this comment

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

If we can set any RunnerInterface, then we can return more than just Runner (fix typehint). Same holds true for the constructor. It can just be Runner Interface instead of Peridot\Runner\Runner.

Copy link
Member Author

Choose a reason for hiding this comment

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

cool

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.19%) to 94.62% when pulling e0a4ec6 on brianium:feature/command-set-runner into a100d75 on peridot-php:master.

@austinsmorris
Copy link
Member

Looks good, but why did the last commit drop coverage by 5%?

@brianium
Copy link
Member Author

brianium commented Feb 6, 2015

@austinsmorris not sure on coverage details, as usual - hhvm coverage seems to be flawed. something with lib we are using? I definitely don't want that on the repo page. I'll look into it.

@brianium
Copy link
Member Author

brianium commented Feb 6, 2015

@austinsmorris yeah, it looks like there is an open issue on hhvm coverage things, so I just reran the build and it put it back at 95. This should be good to merge.

austinsmorris added a commit that referenced this pull request Feb 6, 2015
@austinsmorris austinsmorris merged commit c4dadfa into peridot-php:master Feb 6, 2015
@austinsmorris austinsmorris deleted the feature/command-set-runner branch February 6, 2015 13:39
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.

Runner getter and setter on Console\Command
3 participants