From c4e122d99b6ae6dd694df864967563d3b74e8d42 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 11:02:15 +0100 Subject: [PATCH] wip #5725 @0.25 --- app/src/Tools.php | 23 +++++++++++++++++++++++ app/tools.php | 10 ++++++++++ 2 files changed, 33 insertions(+) create mode 100644 app/src/Tools.php create mode 100644 app/tools.php diff --git a/app/src/Tools.php b/app/src/Tools.php new file mode 100644 index 0000000..3b8410d --- /dev/null +++ b/app/src/Tools.php @@ -0,0 +1,23 @@ + 0]); + Zip::archive($a['source'], $a['dest'], $a['compression']); + } + + public static function copy($a) { + foreach ($a['files'] as $from => $to) { + Files::copy($from, $to); + } + } + + protected static function _args($args, $defaults = []) { + return array_merge($defaults, $args); + } +} \ No newline at end of file diff --git a/app/tools.php b/app/tools.php new file mode 100644 index 0000000..0224aa5 --- /dev/null +++ b/app/tools.php @@ -0,0 +1,10 @@ +