コード例 #1
0
ファイル: BaseCommand.php プロジェクト: docit/core
 /**
  * getVars
  *
  * @param null $packageName
  * @return array
  */
 public function getGeneratorVars($directory)
 {
     $stubDir = $this->docit->config('stubs_path');
     $destDir = $this->docit->getRootDir() . DIRECTORY_SEPARATOR . $directory;
     $vars = ['config' => array_dot($this->docit->config()), 'open' => '<?php', 'stubDir' => $stubDir, 'destDir' => $destDir, 'directory' => $directory];
     return $vars;
 }
コード例 #2
0
ファイル: FactoryHook.php プロジェクト: docit/phpdoc-hook
 /**
  * Handle the factory hook.
  *
  * @param  \Docit\Core\Factory  $factory
  * @return void
  */
 public function handle(Factory $factory)
 {
     $factory->setConfig(array_replace_recursive($factory->config(), $this->config->get('docit.hooks.phpdoc')));
 }
コード例 #3
0
ファイル: FactoryHook.php プロジェクト: docit/filesystem-hook
 /**
  * Handle the factory hook.
  *
  * @param  \Docit\Core\Factory  $factory
  * @return void
  */
 public function handle(Factory $factory)
 {
     $factory->setConfig(array_replace_recursive($factory->config(), $this->config->get('docit.hooks.filesystem.default_project_config')));
 }
コード例 #4
0
ファイル: FactoryHook.php プロジェクト: docit/github-hook
 public function handle(DocitFactory $docit)
 {
     $docit->setConfig(array_replace_recursive($docit->config(), $this->config->get('docit.hooks.github.default_project_config')));
 }