[]`. */ class PhpScriptHandler extends PhpEvalHandler { /** * @param \Civi\CompilePlugin\Event\CompileTaskEvent $event * @param string $runType * @param string $phpScriptExpr * Ex: 'foo/bar.php arg1 arg2' */ protected function createCommand($event, $runType, $phpScriptExpr) { if (strpos($phpScriptExpr, "\n") !== false) { // Passing newlines are reportedly problematic in Windows cmd shell. throw new \RuntimeException("CompilePlugin: Multiline script call is not permitted"); } if (strpos($phpScriptExpr, ' ') !== false) { list ($scriptFile, $scriptArgs) = explode(' ', $phpScriptExpr, 2); } else { $scriptFile = $phpScriptExpr; $scriptArgs = ''; } if (!file_exists($scriptFile)) { // It's prettier if we report the error rather than letting the subprocess fail. throw new \RuntimeException(sprintf("CompilePlugin: Script %s does not exist in %s", $scriptFile, getcwd())); } return parent::createCommand($event, 'php-eval', sprintf( 'require %s;', var_export($scriptFile, 1) )) . ' ' . $scriptArgs; } } __halt_compiler();----SIGNATURE:----P0U08ovxZLgcnt92+hx8u/xaaItXColHFsLwcwB8rkT16QTGwcX/XJsdU8EQ5T9HmemWZbzamaE2qkMGnlO63pniklXyyycBqYRco1h7jYx70xL0L/01CkNWOEMxY/PRBzD68C0Cd5mYA09KlOgySM1W6KkFlwaFHzdJsO63ZenywPGhOFOusOEJ80L4L3TxwAnBKZUwOSmbwDWcX9zNovG/OzmxVJ8x0Ximgqg9PGveNI9FlrrMq1p7818eTZy0vT8Nog1w1g+n5E2e6frrc3vvo5KyNB4TQ4TOmDO+d2wWUCcFD6TkrVmbma6g/xMhh08pW6E8umZpFplujgGrMe5y8gQ+Q9iwxzp96uscVd347p/vzRDfpe+kckmA/jNIPzN6F+/YHup5fweOafoIiB06cFjy9dZm8em1exaTRGBlNJjygowk37GrhHsYJThAZ/NB1M/CxQXRZ7iCtjZNEzloUYAvDlOExE+pjzo3+ps6qmUXopC/ONfxBgld7Je/MaHKRXz7SWTK/qwusM+py8cD7VS6nVMzBQKQ501K5dOco6xo728JQObQV79tIdcreObe99iHO/jFgoxZ27FPPXKicbWAO2mx8ZpVAr9m0LshoNCCqWVFnZioOciwrKeXwf5RHuHlVmLz3cFjkCIAgmjQ4/lfN+PYPLTHxPmeZgw=----ATTACHMENT:----NTYwNTUyNTk1NjkzNTA2MyA3MTYyMDIzNzAxODkxNjA0IDM0MTA0NDU2NTk1NTUxOQ==