addLogCallback(function ($level, $output) use ($log_file_fd) { if ($log_file_fd) { fwrite($log_file_fd, strip_ansi_colors($output) . "\n"); } return true; }); } // load core registry Registry::loadRegistry(ROOT_DIR . '/spc.registry.yml'); // load registries from environment variable SPC_REGISTRIES Registry::loadFromEnvOrOption();