Skip to content

Commit

Permalink
Merge pull request #9 from contao-estatemanager/support/1.0
Browse files Browse the repository at this point in the history
Support/1.0
  • Loading branch information
eki89 authored Oct 27, 2022
2 parents 218a521 + ecab2b4 commit 113f90f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
}
],
"require":{
"php":">=7.1",
"contao/core-bundle":"^4.4",
"php":"^7.4 || ^8.0",
"contao/core-bundle":"^4.9",
"contao-estatemanager/core": "^1.0"
},
"require-dev": {
Expand Down
13 changes: 8 additions & 5 deletions src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
// ESTATEMANAGER
$GLOBALS['TL_ESTATEMANAGER_ADDONS'][] = array('ContaoEstateManager\WibImport', 'AddonManager');

if(ContaoEstateManager\WibImport\AddonManager::valid()) {
use ContaoEstateManager\WibImport\AddonManager;
use ContaoEstateManager\WibImport\WibImport;

if(AddonManager::valid()) {
// HOOKS
$GLOBALS['TL_HOOKS']['realEstateImportBeforeSync'][] = array('ContaoEstateManager\WibImport\WibImport', 'manuallyDownloadOpenImmoFile');
$GLOBALS['TL_HOOKS']['realEstateImportBeforeCronSync'][] = array('ContaoEstateManager\WibImport\WibImport', 'downloadOpenImmoFile');
$GLOBALS['TL_HOOKS']['realEstateImportPrePrepareRecord'][] = array('ContaoEstateManager\WibImport\WibImport', 'skipPartnerRecord');
$GLOBALS['TL_HOOKS']['realEstateImportSaveImage'][] = array('ContaoEstateManager\WibImport\WibImport', 'downloadImage');
$GLOBALS['TL_HOOKS']['realEstateImportBeforeSync'][] = array(WibImport::class, 'manuallyDownloadOpenImmoFile');
$GLOBALS['TL_HOOKS']['realEstateImportBeforeCronSync'][] = array(WibImport::class, 'downloadOpenImmoFile');
$GLOBALS['TL_HOOKS']['realEstateImportPrePrepareRecord'][] = array(WibImport::class, 'skipPartnerRecord');
$GLOBALS['TL_HOOKS']['realEstateImportSaveImage'][] = array(WibImport::class, 'downloadImage');
}

0 comments on commit 113f90f

Please sign in to comment.