classes/phing/tasks/ext/Service/Amazon/S3.php
public function getClient()
    {
        if ($this->_client === null) {
            try {
                $s3Client = new Aws\S3\S3Client(
                    [
                        'key' => $this->getKey(),
                        'secret' => $this->getSecret(),
                    ]
                );
            } catch (InvalidArgumentException $e) {
                throw new BuildException($e);
            }

            $this->_client = $s3Client;
        }

        return $this->_client;
    }
public function getClient()
    {
        if ($this->_client === null) {
            try {
                $s3Client = new Aws\S3\S3Client(
                    [
                        'key' => $this->getKey(),
                        'secret' => $this->getSecret(),
                    ]
                );
            } catch (InvalidArgumentException $e) {
                throw new BuildException($e);
            }

            $this->_client = $s3Client;
        }

        return $this->_client;
    }
public function getClient ( ) { if ( $ this -> _client === null ) { try { $ s3Client = new Aws \ S3 \ S3Client ( [ 'key' => $ this -> getKey ( ) , 'secret' => $ this -> getSecret ( ) , ] ) ; } catch ( InvalidArgumentException $ e ) { throw new BuildException ( $ e ) ; } $ this -> _client = $ s3Client ; } return $ this -> _client ; }
We only instantiate the client once per task call

@return Aws\S3\S3Client

@throws \BuildException
We only instantiate the client once per task call