Commit 7bf6fb4 1 parent 8f06680 commit 7bf6fb4 Copy full SHA for 7bf6fb4
File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ abstract class AbstractCommand
64
64
private $ commandMetricsFactory ;
65
65
66
66
/**
67
- * @var ContainerInterface
67
+ * @var ContainerInterface|null
68
68
*/
69
69
protected $ container ;
70
70
@@ -292,9 +292,9 @@ protected function processExecutionEvent($eventName)
292
292
/**
293
293
* Sets service container instance, for injecting custom dependencies into the command
294
294
*
295
- * @param ContainerInterface $container
295
+ * @param ContainerInterface|null $container
296
296
*/
297
- public function setContainer (ContainerInterface $ container )
297
+ public function setContainer (ContainerInterface $ container = null )
298
298
{
299
299
$ this ->container = $ container ;
300
300
}
Original file line number Diff line number Diff line change @@ -63,12 +63,11 @@ class CommandFactory
63
63
* Constructor
64
64
*
65
65
* @param Config $config
66
- * @param LocatorInterface $serviceLocator
67
66
* @param CircuitBreakerFactory $circuitBreakerFactory
68
67
* @param CommandMetricsFactory $commandMetricsFactory
69
- * @param RequestCache $requestCache
70
- * @param RequestLog $requestLog
71
- * @param ContainerInterface $container
68
+ * @param RequestCache|null $requestCache
69
+ * @param RequestLog|null $requestLog
70
+ * @param ContainerInterface|null $container
72
71
*/
73
72
public function __construct (
74
73
Config $ config ,
You can’t perform that action at this time.
0 commit comments