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

# Class UserAgentListener

Listener used to append strings to the User-Agent header of a request based on the `ua.append` option. `ua.append` can contain a string or array of values.

  Aws\Common\Client\UserAgentListener implements Symfony\Component\EventDispatcher\EventSubscriberInterface

Namespace: Aws\Common\Client
Located at Aws/Common/Client/UserAgentListener.php

## Methods summary

- `public static` `getSubscribedEvents ( )`
- `public` `onBeforeSend ( Guzzle\Common\Event $event )`

  Adds strings to the User-Agent header using the `ua.append` parameter of a command

## Methods detail

# `public static`
`getSubscribedEvents( )`
# `public`
`onBeforeSend( `Guzzle\Common\Event` $event )`

Adds strings to the User-Agent header using the `ua.append` parameter of a command

#### Parameters

$event
  ``Guzzle\Common\Event``
  $event Event emitted

### Magic methods summary

## Constants summary

`string` | `OPTION` | `'ua.append'` | # Option used to store User-Agent modifiers