28 public function copy($sourcePath, $destinationPath,
array $placeholders = [])
30 if (!$this->fs->has($destinationPath)) {
31 $templateContents = file_get_contents($sourcePath);
33 foreach ($placeholders as $placeholder => $value) {
34 if (is_callable($value)) {
38 $templateContents = str_replace(
'[[' . $placeholder .
']]', $value, $templateContents);
__construct(\ILIAS\Filesystem\Filesystem $fs)
ilSimpleSAMLphpConfigTemplateHandler constructor.
copy($sourcePath, $destinationPath, array $placeholders=[])
Create styles array
The data for the language used.
Class ilSimpleSAMLphpConfigTemplateHandler.
static getDataDir()
get data directory (outside webspace)
Class FlySystemFileAccessTest.