You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, allowed file extensions are set to 'csv', 'xls', 'xlsx', 'ods'.
However, if you want to change it, you can override this method in your import configuration.
List of options passed to form in createMatrixForm() method, should contain new constraints element:
'constraints' => $importConfiguration->getMatrixConstraints()
UPGRADE TO 2.3
Controller
Passing configuration class by getSubscribedServices() method is not needed anymore and will be removed in the future.
To make sure that configuration class will be injected automatically:
Interface JG\BatchEntityImportBundle\Controller\ImportConfigurationAutoInjectInterface should be implemented.
Trait JG\BatchEntityImportBundle\Controller\ImportConfigurationAutoInjectTrait should be used to add needed methods.
UPGRADE TO 2.2
Import Configuration class
Now configuration class should be always registered as a service: