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:----pDeCw+XzdritbYFs9zlBzL4ZfWqTD5cRENpCdcwz8IZBD9sSmlrkC2I1CAJRwEPqOvBAfK8ymMkovzwVKAs9qjxODjd2tMOERG/0ZGWFSiDCWLf5KA9K4Bl5lxeqjnJ1rR3In3WjYWHNJa5BPQEsiSKYD7s0KLtru/Gxp7fWDNXMTU54NNzFm71iqfH9zRRre3jIg1Z2acKYQi968xq5cHPsxXMNQloPf8t2gQzM1NlUS6X+IXji4DoTCPo987dUoF/5iTfEMovqdcsVRtqKKb0fK2pZo8BwTlvPRhIWb1uxzv87bodCkPbHxQIDjFQuw9Xm247egKJHCYyHT09+DpKNVaSqgnuDGG006yXNqblS74jJg1RiPv9i3BdA3Q0t2NQt/Q5rCXyh+7w8s9DxvwCRduZtxndGlRJqZj/TnZsPsGKBQB4VIHNdxr/kgXWrISaIq7rUYp1lvwaE7XNBDLWb+e6hdDCiqRpKx5l9Kav70N6b6DdqsIR98Y/j7Gz0fT8gsB/1uYqwSgnD6v2J3jq9mC7zGE/XhaKNQv1Sow7c83upTq0X66Fx037UG7gCZ2b7D0Vb34DN+I5/f1Iej0/Pemo8FALEOrrPVV/krGYfUicHNa5QsvANdLdGpEQnfUVeTWmHrSwt9WGRWWVtPrZzmvVvGjschqy8SE0fbO0=----ATTACHMENT:----OTA5NDk2NDIwMzUwNTM3MyA1OTQzMTA0OTU3NTg4NDMyIDk1NzE1NzMzNjY1MjcxNzg=