----------------------------- CRUDlex\\DataFactoryInterface ----------------------------- .. toctree:: :maxdepth: 1 MySQLDataFactory .. php:namespace: CRUDlex .. php:interface:: DataFactoryInterface An interface used by the ServiceProvider to construct Data instances. By implementing this and handing it into the service provider, the user can control what database (-variation) he wants to use. .. php:method:: createData(EntityDefinition $definition, FilesystemInterface $filesystem) Creates instances. :type $definition: EntityDefinition :param $definition: the definition of the entities managed by the to be created instance :type $filesystem: FilesystemInterface :param $filesystem: the filesystem managing uploaded files :returns: AbstractData the newly created instance