# Interface CRUDDataFactoryInterface

An interface used by the `CRUDlex\CRUDServiceProvider` to construct `CRUDlex\CRUDData` instances. By implementing this and handing it into the service provider, the user can control what database (-variation) he wants to use.

#### Direct known implementers

CRUDlex\CRUDMySQLDataFactory
Namespace: CRUDlex
Located at CRUDDataFactoryInterface.php

Methods summary
`public `CRUDlex\CRUDData`` | # `createData( `CRUDlex\CRUDEntityDefinition` $definition, `CRUDlex\CRUDFileProcessorInterface` $fileProcessor )` Creates instances. Creates instances. #### Parameters $definition the definition of the entities managed by the to be created instance $fileProcessor the file processor managing uploaded files #### Returns ``CRUDlex\CRUDData`` the newly created instance