32 lines
798 B
PHP
32 lines
798 B
PHP
<?php
|
|
|
|
namespace App\Form;
|
|
|
|
use App\Config;
|
|
use App\Entity;
|
|
use App\Settings;
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
|
|
class BackupSettingsForm extends AbstractSettingsForm
|
|
{
|
|
public function __construct(
|
|
EntityManagerInterface $em,
|
|
Entity\Repository\SettingsRepository $settingsRepo,
|
|
Entity\Repository\StorageLocationRepository $storageLocationRepo,
|
|
Settings $settings,
|
|
Config $config
|
|
) {
|
|
$formConfig = $config->get('forms/backup', [
|
|
'settings' => $settings,
|
|
'storageLocations' => $storageLocationRepo->fetchSelectByType(Entity\StorageLocation::TYPE_BACKUP, true),
|
|
]);
|
|
|
|
parent::__construct(
|
|
$em,
|
|
$settingsRepo,
|
|
$settings,
|
|
$formConfig
|
|
);
|
|
}
|
|
}
|