ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
StorageHandlerFactory.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
6
13{
14
21 {
22 $file_system_storage_handler = new FileSystemStorageHandler();
23 switch ($resource->getStorageID()) {
24 case $file_system_storage_handler->getID():
25
26 return $file_system_storage_handler;
27 // More to come
28 default:
29 throw new \LogicException("no other StorageHandler possible at the moment");
30 }
31 }
32}
An exception for terminatinating execution or to throw for unit testing.