public function __construct(CommandManager $commandManager, ConnectionManager $connectionManager, ResponseFormatterManager $responseFormatter, $autoFormatResponse, $resultDataContent) { $this->commandManager = $commandManager; $this->connectionManager = $connectionManager; $this->responseFormatter = $responseFormatter->getResponseFormatter(); $this->autoFormatResponse = $autoFormatResponse; $this->resultDataContent = $resultDataContent; }
public function __construct(CommandManager $commandManager, ConnectionManager $connectionManager, ResponseFormatterManager $responseFormatter, $autoFormatResponse, $resultDataContent, $newFormatModeEnabled) { $this->commandManager = $commandManager; $this->connectionManager = $connectionManager; $this->responseFormatter = $responseFormatter->getResponseFormatter(); $this->autoFormatResponse = $autoFormatResponse; $this->resultDataContent = $resultDataContent; $this->newFormatModeEnabled = $newFormatModeEnabled; if ($this->newFormatModeEnabled) { $this->newFormattingService = new ResponseFormattingService(); } }