[]`. */ 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:----GME3mtnsj3F2RQ38pxsdKvzTHPwhI3ku+meGKcMf+VgWRgBaiVTGE7NY/fe9lE8pM3Ve67ZnqnFHcGgXXg3o7jraukhPbyxCeIEKaqCNOKS+TkXinFn6WwyJrfjzmEjxky0U2cgCAX+aAiZrEKomCujFe0BHkF0L8RVfQu/n9/P6Du0IasWvPwsed6r5KFwJMO6Wx6sNGOPhwHwtCCIKIFnZVC2Dzx9Ks9pdIEdulG04mSPfcspxjtuPb/ATuJis5MUZ/U+NSLA/NLen3mWne6rIu1Jm1LGn/3LYuUYncY2L4d4lef5lab2p5FjAf6kVGeFBjPaB7++pW6/4DAJ2WeoMxbzfshGqWYO5QiI/iEMQvBGhCd5tksiNoeDjDwE/gl8a6XYyJd9BSlPKKFTgNiJDGIJXpnZmXQ5Atcz3CCOTbqvKbtS/w9HDL2gQ3EA6s6Z7XmXpez8OIb8lkNuR9VBuCsMIunL2bjFae/Wyb3kfH+XoTkL88/s7Yuhq886jtrMwLCAZCrLD5cexYcV1GGLfQfa99WmWp6jwYf0LZoe5vMTKx5KZKK8vApBPokmtMhx+4haYsjHh9BbVh4Iq4Y1/cb4cfmj29GTs/tZchestbQOaAr4U2E+eLWBhBM9f5hM2OCOxdTG1Y3yS0+FBKlSY7tKJnv56ukzgzlGYUZo=----ATTACHMENT:----MzAwNDYxNTA3ODIxODU5IDQ2NTM3NzQ5MTkxMTg2MzQgMzQ2MDE4Mjc1NjAyODQ1OQ==