public function startAppAction()
 {
     $view = new ViewModel(['sql_connectors' => $this->getSqlConnectorsForClient(), 'dbal_connections' => array_values($this->dbalConnections->toArray())]);
     $view->setTemplate('prooph.link.sqlconnector/sql-manager/app');
     $this->layout()->setVariable('includeRiotJs', true);
     return $view;
 }
 private function saveConnections($checkFile = false)
 {
     $path = $this->configLocation->toString() . DIRECTORY_SEPARATOR . self::FILE_NAME;
     $config = ['prooph.link.sqlconnector' => ['connections' => $this->connections->toArray()]];
     if ($checkFile && !file_exists($path)) {
         $this->configWriter->writeNewConfigToDirectory($config, $path);
     } else {
         $this->configWriter->replaceConfigInDirectory($config, $path);
     }
 }