NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class UploadSync

Uploads a local directory tree to Amazon S3

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Aws\S3\Sync\AbstractSync
  Aws\S3\Sync\UploadSync

Namespace: Aws\S3\Sync
Located at Aws/S3/Sync/UploadSync.php

## Methods summary

- `protected` `init ( )`

  Hook to initialize subclasses

- `protected` `createTransferAction ( SplFileInfo $file )`

  Create a command or special transfer action for the

## Methods detail

# `protected`
`init( )`

Hook to initialize subclasses

#### CodeCoverageIgnore

#### Overrides

`Aws\S3\Sync\AbstractSync::init`
# `protected CommandInterface|callable`
`createTransferAction( `SplFileInfo` $file )`

Create a command or special transfer action for the

#### Parameters

$file
  ``SplFileInfo``
  $file File used to build the transfer

#### Returns

`CommandInterface|callable`

### Methods inherited from Aws\S3\Sync\AbstractSync

`__construct()`, `getAllEvents()`, `transfer()`, `transferCommands()`, `transferFiles()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

`string` | `BEFORE_MULTIPART_BUILD` | `'s3.sync.before_multipart_build'` | #

### Constants inherited from Aws\S3\Sync\AbstractSync

`AFTER_TRANSFER`, `BEFORE_TRANSFER`

## Properties summary

### Properties inherited from Aws\S3\Sync\AbstractSync

`$options`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`