view vendor/consolidation/site-process/src/Transport/LocalTransport.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents
children
line wrap: on
line source
<?php

namespace Consolidation\SiteProcess\Transport;

use Consolidation\SiteProcess\SiteProcess;

/**
 * LocalTransport just runs the command on the local system.
 */
class LocalTransport implements TransportInterface
{
    /**
     * @inheritdoc
     */
    public function configure(SiteProcess $process)
    {
        $process->setWorkingDirectoryLocal($process->getWorkingDirectory());
    }

    /**
     * @inheritdoc
     */
    public function wrap($args)
    {
        return $args;
    }

    /**
     * @inheritdoc
     */
    public function addChdir($cd, $args)
    {
        return $args;
    }
}