]> _ Git - cubist_util.git/commitdiff
wip #5422 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Aug 2022 15:20:38 +0000 (17:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Aug 2022 15:20:38 +0000 (17:20 +0200)
src/CommandLine/Imagemagick/Npx.php [new file with mode: 0644]

diff --git a/src/CommandLine/Imagemagick/Npx.php b/src/CommandLine/Imagemagick/Npx.php
new file mode 100644 (file)
index 0000000..3cf2eef
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Cubist\Util\CommandLine\Imagemagick;
+
+use Cubist\Util\CommandLine;
+
+class Npx extends CommandLine
+{
+    public function __construct($program = 'npx', $output = null, $error = true)
+    {
+        parent::__construct($program, $output, $error);
+    }
+
+    public function setModule($module)
+    {
+        $this->setManualArg($module);
+    }
+
+    public function execute($fonction = 'shell_exec')
+    {
+        $this->setArg('unsafe-perm', 'true');
+        parent::execute($fonction);
+    }
+}
\ No newline at end of file