Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompleteCommand.php

function CompleteCommand::log

1 call to CompleteCommand::log()
CompleteCommand::execute in vendor/symfony/console/Command/CompleteCommand.php
Executes the current command.

File

vendor/symfony/console/Command/CompleteCommand.php, line 203

Class

CompleteCommand
Responsible for providing the values to the shell completion.

Namespace

Symfony\Component\Console\Command

Code

private function log($messages) : void {
    if (!$this->isDebug) {
        return;
    }
    $commandName = basename($_SERVER['argv'][0]);
    file_put_contents(sys_get_temp_dir() . '/sf_' . $commandName . '.log', implode(\PHP_EOL, (array) $messages) . \PHP_EOL, \FILE_APPEND);
}
RSS feed
Powered by Drupal