private function copyFile($hookFile) { $copy = new Process(sprintf("mkdir -p {$this->hookDir} && cp %s %s", $hookFile, $this->hookDir)); $copy->run(); }