The only AWS DynamoDb class that does not work with my CI is WriteRequestBatch
although the class has been found when right click on it, as you can see in the screenshot.
echo Aws\Sdk::VERSION . "\n";
# 3.20.11
echo CI_VERSION . "\n";
# 3.1.2
<?php
// ...
use Aws\DynamoDb\Model\BatchRequest\PutRequest;
use Aws\DynamoDb\Model\BatchRequest\WriteRequestBatch;
class Example_model extends CI_Model {
// ...
function Dynamo($ids)
{
$client = Aws\DynamoDb\DynamoDbClient::factory(array(
'profile' => 'default',
'region' => 'eu-central-1',
'version' => 'latest'
));
$putBatch = WriteRequestBatch::factory($client);
// ...
}
// ...
Any suggestion ?