dynamite/dynamite-bundle

PHP DynamoDB Mapper

v0.1.0 2024-03-17 00:15 UTC

This package is not auto-updated.

Last update: 2024-11-06 23:57:36 UTC


README

Bundle Configuration:

dynamite:
  tables:
    default:
      table_name: '%ddb_table_name%'
      partition_key_name: pk
      sort_key_name: sk
      object_type_attr: _ot
      managed_items:
        - Your\Entity\Name\Goes\Here
      indexes:
        GSI1:
          pk: gsi1pk
          sk: gsi1sk

Defining a repository as a service:

somewhere in your services.yaml:

Your\Repository\Name\Goes\here:
  factory: ['@dynamite.registry', getItemRepositoryFor]
  arguments:
    - Your\Entity\Name\Goes\Here