public function renderSchemaResult(ConsoleOutput $output, SchemaUpdateResultRenderer $schemaUpdateResultRenderer = null)
    {
        if (!isset($this->results['renderSchemaResult'])) {
            return;
        }
        $result = reset($this->results['renderSchemaResult']);
        if ($result->hasPerformedUpdates()) {
            $schemaUpdateResultRenderer = $schemaUpdateResultRenderer ?: new SchemaUpdateResultRenderer();
            $output->outputLine('<info>The following database schema updates were performed:</info>');
            $schemaUpdateResultRenderer->render($result, $output, true);
        } else {
            $output->outputLine(
                '<info>No schema updates were performed for update types:%s</info>',
                [
                    PHP_EOL . '"' . implode('", "', SchemaUpdateType::expandSchemaUpdateTypes(['safe'])) . '"',
                ]
            );
        }
    }
public function renderSchemaResult(ConsoleOutput $output, SchemaUpdateResultRenderer $schemaUpdateResultRenderer = null)
    {
        if (!isset($this->results['renderSchemaResult'])) {
            return;
        }
        $result = reset($this->results['renderSchemaResult']);
        if ($result->hasPerformedUpdates()) {
            $schemaUpdateResultRenderer = $schemaUpdateResultRenderer ?: new SchemaUpdateResultRenderer();
            $output->outputLine('<info>The following database schema updates were performed:</info>');
            $schemaUpdateResultRenderer->render($result, $output, true);
        } else {
            $output->outputLine(
                '<info>No schema updates were performed for update types:%s</info>',
                [
                    PHP_EOL . '"' . implode('", "', SchemaUpdateType::expandSchemaUpdateTypes(['safe'])) . '"',
                ]
            );
        }
    }
public function renderSchemaResult ( ConsoleOutput $ output , SchemaUpdateResultRenderer $ schemaUpdateResultRenderer = null ) { if ( ! isset ( $ this -> results [ 'renderSchemaResult' ] ) ) { return ; } $ result = reset ( $ this -> results [ 'renderSchemaResult' ] ) ; if ( $ result -> hasPerformedUpdates ( ) ) { $ schemaUpdateResultRenderer = $ schemaUpdateResultRenderer ? : new SchemaUpdateResultRenderer ( ) ; $ output -> outputLine ( '<info>The following database schema updates were performed:</info>' ) ; $ schemaUpdateResultRenderer -> render ( $ result , $ output , true ) ; } else { $ output -> outputLine ( '<info>No schema updates were performed for update types:%s</info>' , [ PHP_EOL . '"' . implode ( '", "' , SchemaUpdateType :: expandSchemaUpdateTypes ( [ 'safe' ] ) ) . '"' , ] ) ; } }
Output schema result
@param ConsoleOutput $output
Output schema result