mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-06-07 13:05:30 +02:00
10 lines
330 B
PHP
10 lines
330 B
PHP
<?php
|
|
$storageType = $config->get("storage", "type", "files");
|
|
if ($storageType == "db") {
|
|
$storage = new \App\Storage\Db\Ad($dbConnection, $userAuthed);
|
|
} else {
|
|
$storage = new \App\Storage\File\Ad(DOCUMENT_ROOT."/var/configs/backup-ads-".$auth->getUsername().".csv");
|
|
}
|
|
|
|
$adPhoto = new App\Storage\AdPhoto($userAuthed);
|