#!/usr/bin/env php sync(); fwrite(STDOUT, sprintf( "module-permissions-sync: created=%d updated=%d unchanged=%d deactivated=%d total=%d\n", $result['created'], $result['updated'], $result['unchanged'], $result['deactivated'], $result['total'] )); return 0; } ); }); } if (PHP_SAPI === 'cli' && realpath((string) ($_SERVER['SCRIPT_FILENAME'] ?? '')) === __FILE__) { exit(modulePermissionsSyncRun()); }