getComposer()->getConfig()->get('vendor-dir'); $autoload = $vendorPath . '/autoload.php'; if (!file_exists($autoload)) { throw new \RuntimeException("CompilePlugin: Failed to locate autoload.php"); } $cmd = '@php -r ' . escapeshellarg(sprintf( 'require_once %s; %s %s($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);', var_export($autoload, 1), TaskTransfer::createImportStatement(), $phpMethod )); $r = new ShellRunner($event->getComposer(), $event->getIO()); $r->run($cmd); } /** * @param string $phpMethod * @return bool */ public static function isWellFormedMethod($phpMethod) { if (!is_string($phpMethod)) { return false; } $parts = explode('::', $phpMethod); if (count($parts) > 2) { return false; } return preg_match(';^[a-zA-Z0-9_\\\:]+$;', $phpMethod); } } __halt_compiler();----SIGNATURE:----ZWkS+1NBTVyPP3een5evtdstjt4fhRiDksTy8mHq/SYgm4/V4VfGvFiriobMa4fBMEJ3FzAXUSauD4YGTzq+EFLAkEFIersrqAIrh8LE+tgknn+GXiXyrVWTcf8gdOesQw0mSmyKrLxYFYhwnxhGSwPdy7OZtskVmPl18V6BgMM2PEdRkS58beJan0aytf6KXtk2gg3nVa9tYnTL1gPK1PpuJDSwO7dCOtyfikLLVWQUHuwqytGdY+C+MpI+VTZ+RjdBZ0v+eNa4Oyr4RiocFDC4QaQDVaxTCEsSyvPUQLm4RBN2uax/dawJdR0Ocais6pc1kBq7/b4XVlqKt4CABzYQ+y6T29IrCN8Qc/iXVfmpvHNQvbys4/J8ImjZ4bt26JxfrRRx7NuQPMIp3n/y8sR/whEF4MyYAiCAW2/tBSVDZRDqnotd842MMy4atH3CTzC9mwI935s8axlOt156/fhzEceezXPeN7qEtrsY+kGu6tP1gaknDO0gbmRC7QZeGQcb5cWYMOhCbf03xOky0YJ/ZD+k/yHEbSGOs0Aa+9RDkW/kMmt7cTvlppSG/KuuL8tq+lXGzZcywddJhDLfZu2pOD/jM2IBhNATIRqBn84uw3VVPLWACpZ1aoDfREWq/Yc6l+nAvjYL5e5eeKceDxjYyFr45vfq2qLnl0borrM=----ATTACHMENT:----OTczOTQ0NTU3MDEyMTE5NCA2MzgzNTQzNjQ2NTMyNjczIDM3OTk4NDY0NTQyNzA5MjM=