Merge pull request #492 from openclassify/dia

#1058 Stream versions create big data for file module
This commit is contained in:
Fatih Alp 2020-04-15 18:53:41 +03:00 committed by GitHub
commit 675e352719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
<?php namespace Visiosoft\AdvsModule;
use Anomaly\FilesModule\File\FileModel;
use Anomaly\Streams\Platform\Addon\AddonCollection;
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
use Anomaly\Streams\Platform\Model\Location\LocationVillageEntryModel;
@ -351,8 +352,10 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
/**
* Boot the addon.
* @param AddonCollection $addonCollection
* @param FileModel $fileModel
*/
public function boot(AddonCollection $addonCollection)
public function boot(AddonCollection $addonCollection, FileModel $fileModel)
{
// Run extra post-boot registration logic here.
// Use method injection or commands to bring in services.
@ -368,6 +371,9 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
];
$addonCollection->get('anomaly.module.settings')->addSection($slug, $section);
$addonCollection->get('anomaly.module.settings')->addSection($slug2, $section2);
// Disable file versioning
$fileModel->disableVersioning();
}
/**