/** * getVars * * @param null $packageName * @return array */ public function getGeneratorVars($directory) { $stubDir = $this->codex->config('stubs_path'); $destDir = $this->codex->getRootDir() . DIRECTORY_SEPARATOR . $directory; $vars = ['config' => array_dot($this->codex->config()), 'open' => '<?php', 'stubDir' => $stubDir, 'destDir' => $destDir, 'directory' => $directory]; return $vars; }
public function handle(CodexFactory $codex) { $codex->setConfig(array_replace_recursive($codex->config(), $this->config->get('codex.hooks.git.default_project_config'))); }