for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of CaptainHook.
*
* (c) Sebastian Feldmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace sebastianfeldmann\CaptainHook\Console\Application;
use sebastianfeldmann\CaptainHook\Console\Application;
* Class ConfigHandler
* @package CaptainHook
* @author Sebastian Feldmann <[email protected]>
* @link https://github.com/sebastianfeldmann/captainhook
* @since Class available since Release 0.9.0
abstract class ConfigHandler extends Application
{
* Path to CaptainHook config file
* @var string
protected $configFile;
* Set the configuration file to use.
* @param string $config
public function setConfigFile($config)
$this->configFile = $config;
}
* Get the configuration file to use.
* @return string
public function getConfigFile()
if (null === $this->configFile) {
$this->configFile = getcwd() . DIRECTORY_SEPARATOR . 'captainhook.json';
return $this->configFile;