-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Add command resolver (proof of concept) #16438
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
Changes from 1 commit
c18f8e2
997d45d
1009753
997d431
48c5426
d883f89
d07ee8a
caf62b3
0d9ddec
40f304a
64a9e67
6b0f347
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
*/ | ||
interface CommandResolverInterface | ||
{ | ||
|
||
/** | ||
* @param Command $command | ||
* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
use Symfony\Component\Console\Tests\Fixtures\LazyTestCommand; | ||
|
||
/** | ||
* @author Ivan Shcherbak <dev@funivan.com> | ||
*/ | ||
* @author Ivan Shcherbak <dev@funivan.com> | ||
*/ | ||
class CommandResolverTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testLazyCommandResolver() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrong indent in whole file. Use 4 spaces not 2. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for that. I will fix it. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
*/ | ||
class CustomCommandResolver implements CommandResolverInterface | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not extend existing one and just add default fixture code in constructor? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to show how to implement |
||
{ | ||
/** | ||
/** | ||
* Cache commands. | ||
* | ||
* @var array | ||
|
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.
commandResolver
would be a better name