| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SettingController extends Controller |
||
| 15 | { |
||
| 16 | private $mediaSyncService; |
||
| 17 | |||
| 18 | 1 | public function __construct(MediaSyncService $mediaSyncService) |
|
| 21 | 1 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Save the application settings. |
||
| 25 | * |
||
| 26 | * Save the application settings. Right now there's only one setting to be saved (`media_path`). |
||
| 27 | * |
||
| 28 | * @bodyParam media_path string required Absolute path to the media folder. Example: /var/www/media/ |
||
| 29 | * |
||
| 30 | * @response [] |
||
| 31 | * |
||
| 32 | * @throws Exception |
||
| 33 | * |
||
| 34 | * @return JsonResponse |
||
| 35 | */ |
||
| 36 | 1 | public function store(SettingRequest $request) |
|
| 47 |