mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#1058 Stream versions create big data for file module
This commit is contained in:
parent
5678ff9dde
commit
845cbed18b
@ -1,5 +1,6 @@
|
|||||||
<?php namespace Visiosoft\AdvsModule;
|
<?php namespace Visiosoft\AdvsModule;
|
||||||
|
|
||||||
|
use Anomaly\FilesModule\File\FileModel;
|
||||||
use Anomaly\Streams\Platform\Addon\AddonCollection;
|
use Anomaly\Streams\Platform\Addon\AddonCollection;
|
||||||
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
||||||
use Anomaly\Streams\Platform\Model\Location\LocationVillageEntryModel;
|
use Anomaly\Streams\Platform\Model\Location\LocationVillageEntryModel;
|
||||||
@ -351,8 +352,10 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Boot the addon.
|
* 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.
|
// Run extra post-boot registration logic here.
|
||||||
// Use method injection or commands to bring in services.
|
// 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($slug, $section);
|
||||||
$addonCollection->get('anomaly.module.settings')->addSection($slug2, $section2);
|
$addonCollection->get('anomaly.module.settings')->addSection($slug2, $section2);
|
||||||
|
|
||||||
|
// Disable file versioning
|
||||||
|
$fileModel->disableVersioning();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user