createTransformer() public method

Creates a dataset's transformer using factory service
public createTransformer ( string $transformerType, array $options = [] ) : WellCommerce\Component\DataSet\Transformer\DataSetTransformerInterface
$transformerType string
$options array
return WellCommerce\Component\DataSet\Transformer\DataSetTransformerInterface
 protected function getDataSetTransformer(string $type, array $options = []) : DataSetTransformerInterface
 {
     return $this->manager->createTransformer($type, $options);
 }
Beispiel #2
0
 /**
  * Creates a dataset's transformer using factory
  *
  * @param       $type
  * @param array $options
  *
  * @return \WellCommerce\Component\DataSet\Transformer\DataSetTransformerInterface
  */
 protected function getDataSetTransformer($type, array $options = [])
 {
     return $this->manager->createTransformer($type, $options);
 }