Inheritance: implements pharext\Task
Exemple #1
0
 private function activate($temp)
 {
     if ($this->args->ini) {
         $files = [$this->args->ini];
     } else {
         $files = array_filter(array_map("trim", explode(",", php_ini_scanned_files())));
         $files[] = php_ini_loaded_file();
     }
     $sudo = isset($this->args->sudo) ? $this->args->sudo : null;
     $type = $this->metadata("type") ?: "extension";
     $activate = new Task\Activate($temp, $files, $type, $this->args->prefix, $this->args["common-name"], $sudo);
     if (!$activate->run($this->verbosity())) {
         $this->info("Extension already activated ...\n");
     }
 }