|
@@ 108-117 (lines=10) @@
|
| 105 |
|
throw new \InvalidArgumentException('$name must be a non empty string.', 1491681665);
|
| 106 |
|
}
|
| 107 |
|
|
| 108 |
|
if (self::createDirectoryAtWebRoot($name) !== true) {
|
| 109 |
|
FlashMessageUtility::showFlashMessage(
|
| 110 |
|
$extensionKey,
|
| 111 |
|
'Local storage ' . $name . ' could not be created!',
|
| 112 |
|
'Local storage not created',
|
| 113 |
|
FlashMessage::WARNING
|
| 114 |
|
);
|
| 115 |
|
|
| 116 |
|
return null;
|
| 117 |
|
}
|
| 118 |
|
|
| 119 |
|
/** @var $storage \TYPO3\CMS\Core\Resource\ResourceStorage */
|
| 120 |
|
$storage = self::findLocalStorage($name);
|
|
@@ 167-174 (lines=8) @@
|
| 164 |
|
throw new \InvalidArgumentException('$name must be a non empty string.', 1491682406);
|
| 165 |
|
}
|
| 166 |
|
|
| 167 |
|
if (self::findLocalStorage($name) !== null) {
|
| 168 |
|
FlashMessageUtility::showFlashMessage(
|
| 169 |
|
$extensionKey,
|
| 170 |
|
'Local storage ' . $name . ' must be removed by an admin from the root line in the backend and web root directory.',
|
| 171 |
|
'Remove local storage',
|
| 172 |
|
FlashMessage::NOTICE
|
| 173 |
|
);
|
| 174 |
|
}
|
| 175 |
|
}
|
| 176 |
|
} |