---
title: Registering Transformers
slug: klevu-magento-v4/entities-registering-transformers
docTags: 
createdAt: 2024-10-07T09:17:46.180Z
---

When creating transformers in a custom module we must register them with the pipelines.

Add the namespace for your transformer directory (e.g. `Vendor\Module\Pipeline\Transformer`) to the namespaces argument for the TransformerManager.&#x20;

:::CodeblockTabs
Vendor/Module/etc/di.xml

```xml
<type name="Klevu\PlatformPipelines\ObjectManager\TransformerManager">
    <arguments>
        <argument name="namespaces" xsi:type="array">
            <!-- Change the name of this item to match the directory containing your transformer classes -->
            <item name="Vendor\Module\Pipeline\Transformer"
                  xsi:type="const">Klevu\Pipelines\ObjectManager\ObjectManagerInterface::PRIORITY_NAMESPACE_SORT_ORDER</item>
        </argument>
    </arguments>
</type>
```
:::

