コード例 #1
0
ファイル: Repository.php プロジェクト: amaxlab/git-web-hook
 /**
  * @param string               $name           Name on the repository
  * @param string               $path           Path to execute commands
  * @param array                $options        Options related to current repository
  * @param array                $defaultOptions Default options passed from hook
  * @param LoggerInterface|null $logger         Logger
  */
 public function __construct($name, $path, array $options = array(), array $defaultOptions = array(), LoggerInterface $logger = null)
 {
     parent::__construct($name, $path, $options, $defaultOptions);
     $this->logger = $logger ? $logger : new NullLogger();
     $this->logger->debug('Create repository with params ' . json_encode($this->options));
 }
コード例 #2
0
ファイル: Branch.php プロジェクト: amaxlab/git-web-hook
 /**
  * @param Repository $repository     Repository owen this branch
  * @param string     $name           Name of branch
  * @param string     $path           path for root directory of repository
  * @param array      $options        options
  * @param array      $defaultOptions Options passed from repository
  */
 public function __construct(Repository $repository, $name, $path, array $options = array(), array $defaultOptions = array())
 {
     parent::__construct($name, $path, $options, $defaultOptions);
     $this->logger = $repository->getLogger();
     $this->logger->debug('Create branch with params ' . json_encode($this->options));
 }