Connector/Logger/LoggerMiddleware.php
public function execute($command, callable $next)
    {
        $this->formatter->logCommandReceived($command);

        $returnValue = false;

        try {
            $returnValue = $next($command);

            $this->formatter->logCommandProcessed($command, $returnValue);

            return $returnValue;
        } catch (Exception $exception) {
            $this->formatter->logCommandFailed($command, $exception);
        }

        return $returnValue;
    }
public function execute($command, callable $next)
    {
        $this->formatter->logCommandReceived($command);

        $returnValue = false;

        try {
            $returnValue = $next($command);

            $this->formatter->logCommandProcessed($command, $returnValue);

            return $returnValue;
        } catch (Exception $exception) {
            $this->formatter->logCommandFailed($command, $exception);
        }

        return $returnValue;
    }
public function execute ( $ command , callable $ next ) { $ this -> formatter -> logCommandReceived ( $ command ) ; $ returnValue = false ; try { $ returnValue = $ next ( $ command ) ; $ this -> formatter -> logCommandProcessed ( $ command , $ returnValue ) ; return $ returnValue ; } catch ( Exception $ exception ) { $ this -> formatter -> logCommandFailed ( $ command , $ exception ) ; } return $ returnValue ; }
{@inheritdoc}
{