protected function execute(
        \Symfony\Component\Console\Input\InputInterface $input,
        \Symfony\Component\Console\Output\OutputInterface $output
    ) {
        /* bind $output context to log-methods. */
        $this->setOut($output);
        $this->logInfo("Command '" . $this->getName() . "' is started.");
        try {
            $req = new ARequest();
            $this->servClean->exec($req);
        } catch (\Throwable $e) {
            $this->logError("Command '" . $this->getName() . "' failed. Reason: " . $e->getMessage());
        }
        $this->logInfo("Command '" . $this->getName() . "' is completed.");

    }
protected function execute(
        \Symfony\Component\Console\Input\InputInterface $input,
        \Symfony\Component\Console\Output\OutputInterface $output
    ) {
        /* bind $output context to log-methods. */
        $this->setOut($output);
        $this->logInfo("Command '" . $this->getName() . "' is started.");
        try {
            $req = new ARequest();
            $this->servClean->exec($req);
        } catch (\Throwable $e) {
            $this->logError("Command '" . $this->getName() . "' failed. Reason: " . $e->getMessage());
        }
        $this->logInfo("Command '" . $this->getName() . "' is completed.");

    }
protected function execute ( \ Symfony \ Component \ Console \ Input \ InputInterface $ input , \ Symfony \ Component \ Console \ Output \ OutputInterface $ output ) { /* bind $output context to log-methods. */ $ this -> setOut ( $ output ) ; $ this -> logInfo ( "Command '" . $ this -> getName ( ) . "' is started." ) ; try { $ req = new ARequest ( ) ; $ this -> servClean -> exec ( $ req ) ; } catch ( \ Throwable $ e ) { $ this -> logError ( "Command '" . $ this -> getName ( ) . "' failed. Reason: " . $ e -> getMessage ( ) ) ; } $ this -> logInfo ( "Command '" . $ this -> getName ( ) . "' is completed." ) ; }
Override 'execute' method to prevent "DDL statements are not allowed in transactions" error.

@param \Symfony\Component\Console\Input\InputInterface $input
@param \Symfony\Component\Console\Output\OutputInterface $output
@return int|void|null
Override execute method to prevent DDL statements are not allowed in transactions error .