public function __construct(RepositoryInterface $repository, Handler $contentTypeHandler, Helper\DomainMapper $domainMapper, Helper\ContentTypeDomainMapper $contentTypeDomainMapper, Helper\FieldTypeRegistry $fieldTypeRegistry, array $settings = array())
{
$this->repository = $repository;
$this->contentTypeHandler = $contentTypeHandler;
$this->domainMapper = $domainMapper;
$this->contentTypeDomainMapper = $contentTypeDomainMapper;
$this->fieldTypeRegistry = $fieldTypeRegistry;
// Union makes sure default settings are ignored if provided in argument
$this->settings = $settings + array();
}