From e7bf0bf4fb1fc7f89a908dcc329e5281de8b15ea Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 16 Feb 2026 21:31:48 +0000
Subject: [PATCH] Add hook_install.php and remove hook_enable.php include in public.php

---
 public.php |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/public.php b/public.php
index ca9eaa5..f56883c 100644
--- a/public.php
+++ b/public.php
@@ -2,8 +2,6 @@
 require_once(__DIR__ . '/vendor/autoload.php');
 
 try {
-	require_once(__DIR__ . '/hook_enable.php');
-
 	$helper = new \SIPL\UCRM\wFirma\UcrmHelper();
 	$event = $helper->getCurrentEvent();
 
@@ -19,7 +17,7 @@
 	} elseif ($event['entity'] === 'payment') {
 		$synchronizer = new \SIPL\UCRM\wFirma\PaymentSynchronizer($wFirmaApi, $helper);
 	} elseif ($event['entity'] === 'webhook') {
-		echo 'Webhook OK!';
+		echo 'Webhook OK! UCRM version: ' . $helper->getVersion();
 		die();
 	} else {
 		echo 'Nothing to do with entity ' . $event['entity'];

--
Gitblit v1.10.0