Skip to content

Commit af69373

Browse files
committed
ConsoleFactory: added alias create()
1 parent 8574875 commit af69373

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/ConsoleFactory.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ class ConsoleFactory
1616
private static $useReadlineProvider;
1717

1818

19+
/**
20+
* Alias for createConsole()
21+
* @return Console
22+
*/
23+
public static function create(
24+
IOutputProvider $outputProvider = NULL,
25+
IInputProvider $inputProvider = NULL,
26+
IParametersProvider $parametersProvider = NULL
27+
)
28+
{
29+
return self::createConsole(
30+
$outputProvider,
31+
$inputProvider,
32+
$parametersProvider
33+
);
34+
}
35+
36+
1937
/**
2038
* @return Console
2139
*/

0 commit comments

Comments
 (0)