6 Commits
0.1.0 ... 0.1.2

5 changed files with 313 additions and 358 deletions

View File

@@ -11,7 +11,6 @@ Dossier requires PHP 7.2+ and the following extensions enabled:
* Phar
* SPL
* Date
* fileinfo
* mbstring
* Bz2

1
bin/.gitignore vendored
View File

@@ -2,3 +2,4 @@
lessc
pscss
.directory
/phpca

View File

@@ -32,12 +32,12 @@
"mnapoli/front-yaml" : "^1.6",
"oyejorge/less.php" : "v1.7.0.14",
"erusev/parsedown-extra" : "^0.7.1",
"zaininnari/html-minifier" : "*",
"leafo/scssphp" : "^0.7.6",
"adbario/php-dot-notation" : "^2.0",
"magdev/console-form" : "^0.0.7",
"monolog/monolog" : "^1.23",
"pdfshift/pdfshift-php" : "~1.0.2"
"pdfshift/pdfshift-php" : "~1.0.2",
"raivisdejus/html-minifier" : "~0.5"
},
"config" : {
"bin-dir" : "bin"
@@ -64,5 +64,8 @@
"url" : "git@github.com:magdev/console-form.git",
"name" : "magdev/console-form"
}
]
],
"require-dev" : {
"wapmorgan/php-code-analyzer" : "^1.0"
}
}

655
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -130,7 +130,10 @@ class PharHelperService
*/
public function copy(string $source, string $target): bool
{
return copy($this->getPharUrl($source), $target);
if ($this->isInPhar() && substr($source, 0, 4) !== 'phar') {
$source = $this->getPharUrl($source);
}
return copy($source, $target);
}