public function configureHooks(Config $config) : void
    {
        $msgHook = $config->getHookConfig(Hooks::COMMIT_MSG);
        $preHook = $config->getHookConfig(Hooks::PRE_COMMIT);
        $msgHook->setEnabled(true);
        $preHook->setEnabled(true);

        $this->setupMessageHook($msgHook);
        $this->setupPHPLintingHook($preHook);
        $this->setupPHPUnitHook($preHook);
        $this->setupPHPCodesnifferHook($preHook);
    }
public function configureHooks(Config $config) : void
    {
        $msgHook = $config->getHookConfig(Hooks::COMMIT_MSG);
        $preHook = $config->getHookConfig(Hooks::PRE_COMMIT);
        $msgHook->setEnabled(true);
        $preHook->setEnabled(true);

        $this->setupMessageHook($msgHook);
        $this->setupPHPLintingHook($preHook);
        $this->setupPHPUnitHook($preHook);
        $this->setupPHPCodesnifferHook($preHook);
    }
public function configureHooks ( Config $ config ) : void { $ msgHook = $ config -> getHookConfig ( Hooks :: COMMIT_MSG ) ; $ preHook = $ config -> getHookConfig ( Hooks :: PRE_COMMIT ) ; $ msgHook -> setEnabled ( true ) ; $ preHook -> setEnabled ( true ) ; $ this -> setupMessageHook ( $ msgHook ) ; $ this -> setupPHPLintingHook ( $ preHook ) ; $ this -> setupPHPUnitHook ( $ preHook ) ; $ this -> setupPHPCodesnifferHook ( $ preHook ) ; }
Setup hooks by asking some basic questions

@param  \CaptainHook\App\Config $config
@throws \Exception
Setup hooks by asking some basic questions