|
@@ 102-111 (lines=10) @@
|
| 99 |
|
throw new \InvalidArgumentException('$name must be a non empty string.', 1491681665); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
if (self::createDirectoryAtWebRoot($name) !== true) { |
| 103 |
|
FlashMessageUtility::showFlashMessage( |
| 104 |
|
$extensionKey, |
| 105 |
|
'Local storage ' . $name . ' could not be created!', |
| 106 |
|
'Local storage not created', |
| 107 |
|
FlashMessage::WARNING |
| 108 |
|
); |
| 109 |
|
|
| 110 |
|
return null; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
$addMessage = (is_string($message) && !empty($message) ? ' ' . $message : ''); |
| 114 |
|
/** @var $storage \TYPO3\CMS\Core\Resource\ResourceStorage */ |
|
@@ 159-166 (lines=8) @@
|
| 156 |
|
throw new \InvalidArgumentException('$name must be a non empty string.', 1491682406); |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
if (self::findLocalStorage($name) !== null) { |
| 160 |
|
FlashMessageUtility::showFlashMessage( |
| 161 |
|
$extensionKey, |
| 162 |
|
'Local storage ' . $name . ' must be removed by an admin from the root line in the backend and web root directory.', |
| 163 |
|
'Remove local storage', |
| 164 |
|
FlashMessage::NOTICE |
| 165 |
|
); |
| 166 |
|
} |
| 167 |
|
} |
| 168 |
|
} |
| 169 |
|
|