Transformer/TransformerTrait.php
protected function applyTransformers(array $transformers, $value)
    {
        /** @noinspection ForeachSourceInspection */
        foreach ($transformers as $transformerCode => $transformerOptions) {
            try {
                $transformerCode = $this->getCleanedTransfomerCode($transformerCode);
                $transformer = $this->transformerRegistry->getTransformer($transformerCode);
                $value = $transformer->transform(
                    $value,
                    $transformerOptions ?: []
                );
            } catch (\Throwable $exception) {
                throw new TransformerException($transformerCode, 0, $exception);
            }
        }

        return $value;
    }
protected function applyTransformers(array $transformers, $value)
    {
        /** @noinspection ForeachSourceInspection */
        foreach ($transformers as $transformerCode => $transformerOptions) {
            try {
                $transformerCode = $this->getCleanedTransfomerCode($transformerCode);
                $transformer = $this->transformerRegistry->getTransformer($transformerCode);
                $value = $transformer->transform(
                    $value,
                    $transformerOptions ?: []
                );
            } catch (\Throwable $exception) {
                throw new TransformerException($transformerCode, 0, $exception);
            }
        }

        return $value;
    }
@param array $transformers
@param mixed $value

@throws \CleverAge\ProcessBundle\Exception\TransformerException

@return mixed