fix(perfexcrm module): align version to 3.0.1, unify entrypoint, and harden routes/views

- Bump DESK_MOLONI version to 3.0.1 across module
- Normalize hooks to after_client_* and instantiate PerfexHooks safely
- Fix OAuthController view path and API client class name
- Add missing admin views for webhook config/logs; adjust view loading
- Harden client portal routes and admin routes mapping
- Make Dashboard/Logs/Queue tolerant to optional model methods
- Align log details query with existing schema; avoid broken joins

This makes the module operational in Perfex (admin + client), reduces 404s,
and avoids fatal errors due to inconsistent tables/methods.
This commit is contained in:
Emanuel Almeida
2025-09-11 17:38:45 +01:00
parent 5e5102db73
commit c19f6fd9ee
193 changed files with 59298 additions and 638 deletions

30
phpstan.neon Normal file
View File

@@ -0,0 +1,30 @@
parameters:
level: 8
paths:
- libraries
- models
- controllers
- tests
excludePaths:
- tests/bootstrap.php
- vendor
ignoreErrors:
# Ignore Perfex CRM function stubs in tests
- '#Function get_option not found#'
- '#Function log_activity not found#'
- '#Function hooks not found#'
# Ignore test-specific dynamic properties
- '#Access to an undefined property DeskMoloni\\Tests\\TestHelpers::\$[a-zA-Z]+#'
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
# Custom rules for Desk-Moloni
reportUnmatchedIgnoredErrors: false
# Bootstrap for test environment
bootstrapFiles:
- tests/bootstrap.php