diff --git a/composer.json b/composer.json index fcb8e7c..17c460d 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "php":"^7.4 || ^8.0", "contao/core-bundle":"^4.9", "contao-estatemanager/core": "^1.0", - "oveleon/contao-onoffice-api-bundle": "^2.0" + "oveleon/contao-onoffice-api-bundle": "^3.0" }, "require-dev": { "contao/manager-plugin": "^2.0", diff --git a/src/Import/ObjectTypeImport.php b/src/Import/ObjectTypeImport.php index e6f033b..c0ae4db 100644 --- a/src/Import/ObjectTypeImport.php +++ b/src/Import/ObjectTypeImport.php @@ -16,11 +16,11 @@ use Contao\Database; use ContaoEstateManager\ObjectTypeEntity\ObjectTypeModel; -use Oveleon\ContaoOnofficeApiBundle\OnOfficeRead; +use Oveleon\ContaoOnofficeApiBundle\Controller\ReadController; class ObjectTypeImport { - private OnOfficeRead $onOfficeHandler; + private ReadController $onOfficeHandler; private int $intCount = 0; @@ -29,7 +29,7 @@ class ObjectTypeImport */ public function __construct() { - $this->onOfficeHandler = new OnOfficeRead(); + $this->onOfficeHandler = new ReadController(); } /** diff --git a/src/Import/RegionImport.php b/src/Import/RegionImport.php index 6fe7fa9..b75dff4 100644 --- a/src/Import/RegionImport.php +++ b/src/Import/RegionImport.php @@ -16,11 +16,11 @@ use Contao\Database; use ContaoEstateManager\RegionEntity\RegionModel; -use Oveleon\ContaoOnofficeApiBundle\OnOfficeRead; +use Oveleon\ContaoOnofficeApiBundle\Controller\ReadController; class RegionImport { - private OnOfficeRead $onOfficeHandler; + private ReadController $onOfficeHandler; private int $intCount = 0; @@ -29,7 +29,7 @@ class RegionImport */ public function __construct() { - $this->onOfficeHandler = new OnOfficeRead(); + $this->onOfficeHandler = new ReadController(); } /** @@ -37,7 +37,13 @@ public function __construct() */ public function fetch(?array $attributes = null): array { - $arrData = $this->onOfficeHandler->run('regions', null, null, $attributes, true); + $arrData = $this->onOfficeHandler->run( + 'regions', + null, + null, + $attributes, + true + ); return [ 'message' => 'Please wait, the data will be imported', diff --git a/src/Import/SearchCriteriaImport.php b/src/Import/SearchCriteriaImport.php index 013d630..ac03476 100644 --- a/src/Import/SearchCriteriaImport.php +++ b/src/Import/SearchCriteriaImport.php @@ -21,14 +21,14 @@ use ContaoEstateManager\RegionEntity\Region; use ContaoEstateManager\RegionEntity\RegionConnectionModel; use ContaoEstateManager\RegionEntity\RegionModel; -use Oveleon\ContaoOnofficeApiBundle\OnOfficeRead; +use Oveleon\ContaoOnofficeApiBundle\Controller\ReadController; class SearchCriteriaImport { /** * onOffice Handler. */ - private OnOfficeRead $onOfficeHandler; + private ReadController $onOfficeHandler; /** * Search criteria mapper. @@ -54,7 +54,7 @@ public function __construct() $this->mapper = new SearchCriteriaMapper(); // Create onOffice handler - $this->onOfficeHandler = new OnOfficeRead(); + $this->onOfficeHandler = new ReadController(); } /**