public function register(Container $app)
{
$app['crud'] = function () use($app) {
$result = new static();
$fileProcessor = $app->offsetExists('crud.fileprocessor') ? $app['crud.fileprocessor'] : new SimpleFilesystemFileProcessor();
$manageI18n = $app->offsetExists('crud.manageI18n') ? $app['crud.manageI18n'] : true;
$result->init($app['crud.datafactory'], $app['crud.file'], $fileProcessor, $manageI18n, $app);
return $result;
};
}