1<?
php declare(strict_types=1);
30 public function copy(
string $sourcePath,
string $destinationPath, array $placeholders = []) : void
32 if (!$this->fs->has($destinationPath)) {
33 $templateContents = file_get_contents($sourcePath);
35 foreach ($placeholders as $placeholder => $value) {
36 if (is_callable($value)) {
40 $templateContents = str_replace(
'[[' . $placeholder .
']]', $value, $templateContents);
An exception for terminatinating execution or to throw for unit testing.
Class ilSimpleSAMLphpConfigTemplateHandler.
__construct(Filesystem $fs)
ilSimpleSAMLphpConfigTemplateHandler constructor.
copy(string $sourcePath, string $destinationPath, array $placeholders=[])
static getDataDir()
get data directory (outside webspace)
Class FlySystemFileAccessTest.