PHP code example of uam / aws-bundle
1. Go to this page and download the library: Download uam/aws-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uam / aws-bundle example snippets
# app/AppKernel.php
public function registerBundles()
{
bundles = (
// …
new UAM\Bundle\AwsBundle\UAMAwsBundle(),
);
return bundles();
}
# MyBundle/Controller/MyController.php
public function someAction()
{
$s3 = $this->container->get('uam_aws.s3');
$sqs = $this->container->get('uam_aws.sqs');
// ...
}