[]`. */ 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:----hwEPooK/D03gZVGyWT8dV1NGtapnS7NcPv2vt14l1TtVK3C6VdNJlseWC6ZjoIy5Eb/vPSlhzINnG4KomFcLZ768cogJFVANx3BmdS2tHV/4EIp01m/iEoTjvTJGXTyXeUqPrK5Ipb2SEMdEISjRMDK4LCSWskohg7W4uMehYZK2XbglYFvRpHCJtUeyY6pBqe9ZhIKAaS0L8LwDySkA4LgenUQCgsShjBUTcMsLnAb64JK64EixVxmJm0hpskESTvWibKH8iQ178FKAWoEyNjYdL1PplsvVliyO4XjXjKC+STDiPlQfMdZzil4LP2mgTBV3zgO1G8UsaJiXFVJ5GbreM/FBatQqSgjAQMQq2jJoxd81OhDfHbbafPZH0/afGfGmFe0xw8LcUAMbiTPfO8R5A4l5JRyhAP94EFuaiimXP1wQ3TsMDK2ohzyQmHKfiW1JcUQ9aX+voBqfSvjbsVFwFMRstA1UPi3+3Tc3T1D80d+SFxc3BJ4b2+FnqFhveot0CaO5gJMT+5hnOT/ED4Zpb8Mi9yFwsop3W7N7F0eCQR/0U09AMQxyEQioKp/k+xfpu+ReC0O3Fc7MYRcYsDwGEusF4MtgM7+fMuBOi5Fd48uQBDShoWC+LFYJ1W+XMd/7v2VnimcsXRvLWWDS70FCz3PkHNcxO12xYuJTBSY=----ATTACHMENT:----MTIxMTkwMzI5NzUwODc0OSA0MjI5MTM4Mjk4NjQ3MDkzIDE0MTc5NDA2ODY0ODY5NDM=