protected function getHookSourceCode(string $hook) : string
    {
        $absRepoPath = realpath($this->repository->getRoot());
        $vendorPath  = getcwd() . '/vendor';
        $configPath  = realpath($this->config->getPath());
        return Template::getCode($hook, $absRepoPath, $vendorPath, $configPath);
    }