diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/AbstractAttributeClusterInterpreter.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/AbstractAttributeClusterInterpreter.php index 11bdb3c..48e8750 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/AbstractAttributeClusterInterpreter.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/AbstractAttributeClusterInterpreter.php @@ -16,7 +16,7 @@ namespace Elements\Bundle\ExportToolkitBundle\ExportService\AttributeClusterInterpreter; use Elements\Bundle\ExportToolkitBundle\Traits\LoggerAwareTrait; -use Pimcore\Model\Object\AbstractObject; +use Pimcore\Model\DataObject\AbstractObject; use Psr\Log\NullLogger; abstract class AbstractAttributeClusterInterpreter diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultCsv.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultCsv.php index 4f87c67..8008e10 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultCsv.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultCsv.php @@ -15,7 +15,7 @@ namespace Elements\Bundle\ExportToolkitBundle\ExportService\AttributeClusterInterpreter; -use Pimcore\Model\Object\AbstractObject; +use Pimcore\Model\DataObject\AbstractObject; class DefaultCsv extends AbstractAttributeClusterInterpreter { diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultJson.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultJson.php index 462ecad..8c4c583 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultJson.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultJson.php @@ -15,7 +15,7 @@ namespace Elements\Bundle\ExportToolkitBundle\ExportService\AttributeClusterInterpreter; -use Pimcore\Model\Object\AbstractObject; +use Pimcore\Model\DataObject\AbstractObject; class DefaultJson extends AbstractAttributeClusterInterpreter { diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultXml.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultXml.php index e5c253e..25d15f8 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultXml.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/AttributeClusterInterpreter/DefaultXml.php @@ -16,7 +16,7 @@ namespace Elements\Bundle\ExportToolkitBundle\ExportService\AttributeClusterInterpreter; use Elements\Bundle\ExportToolkitBundle\SimpleXMLExtended; -use Pimcore\Model\Object\AbstractObject; +use Pimcore\Model\DataObject\AbstractObject; class DefaultXml extends AbstractAttributeClusterInterpreter { diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/Filter/DefaultFilter.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/Filter/DefaultFilter.php index 985fc4e..fff843b 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/Filter/DefaultFilter.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/Filter/DefaultFilter.php @@ -16,7 +16,7 @@ namespace Elements\Bundle\ExportToolkitBundle\ExportService\Filter; use Elements\Bundle\ExportToolkitBundle\ExportService\IFilter; -use Pimcore\Model\Object\AbstractObject; +use Pimcore\Model\DataObject\AbstractObject; class DefaultFilter implements IFilter { diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/IListModificator.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/IListModificator.php index 731c237..75e482c 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/IListModificator.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/IListModificator.php @@ -15,7 +15,7 @@ namespace Elements\Bundle\ExportToolkitBundle\ExportService; -use Pimcore\Model\Object\Listing; +use Pimcore\Model\DataObject\Listing; interface IListModificator { diff --git a/src/Elements/Bundle/ExportToolkitBundle/ExportService/Worker.php b/src/Elements/Bundle/ExportToolkitBundle/ExportService/Worker.php index 94ff51e..20e49f7 100644 --- a/src/Elements/Bundle/ExportToolkitBundle/ExportService/Worker.php +++ b/src/Elements/Bundle/ExportToolkitBundle/ExportService/Worker.php @@ -21,8 +21,10 @@ use Elements\Bundle\ExportToolkitBundle\Traits\LoggerAwareTrait; use Pimcore\Log\ApplicationLogger; use Pimcore\Logger; -use Pimcore\Model\Object\AbstractObject; -use Pimcore\Model\Object\Localizedfield; +use Pimcore\Model\DataObject\AbstractObject; +use Pimcore\Model\DataObject\ClassDefinition; +use Pimcore\Model\DataObject\Concrete; +use Pimcore\Model\DataObject\Localizedfield; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; @@ -58,10 +60,10 @@ public function __construct(Configuration $workerConfig) $classId = trim($workerConfig->getConfiguration()->general->pimcoreClass); if ($classId) { - $class = \Pimcore\Model\Object\ClassDefinition::getById($classId); - $this->pimcoreClass = trim('\\Pimcore\\Model\\Object\\' . ucfirst($class->getName())); + $class = ClassDefinition::getById($classId); + $this->pimcoreClass = trim('\\Pimcore\\Model\\DataObject\\' . ucfirst($class->getName())); } else { - $this->pimcoreClass = '\\Pimcore\\Model\\Object\\AbstractObject'; + $this->pimcoreClass = '\\Pimcore\\Model\\DataObject\\AbstractObject'; } $workerConfigClassName = trim($workerConfig->getConfiguration()->general->filterClass); @@ -222,30 +224,30 @@ public function setUpExport() } /** - * @return \Pimcore\Model\Object\Listing\Concrete + * @return \Pimcore\Model\DataObject\Listing\Concrete */ public function getObjectList() { if ($this->pimcoreClass == 'Object_Abstract' || $this->pimcoreClass == 'AbstractObject' - || $this->pimcoreClass == '\\Pimcore\\Model\\Object\\AbstractObject') { - $listClassName = '\\Pimcore\\Model\\Object\\Listing'; + || $this->pimcoreClass == '\\Pimcore\\Model\\DataObject\\AbstractObject') { + $listClassName = '\\Pimcore\\Model\\DataObject\\Listing'; } else { $listClassName = $this->pimcoreClass . '\\Listing'; } /** - * @var $objects \Pimcore\Model\Object\Listing\Concrete|\Pimcore\Model\Object\Listing\Dao + * @var $objects \Pimcore\Model\DataObject\Listing\Concrete|\Pimcore\Model\DataObject\Listing\Dao */ $objects = new $listClassName(); $objects->setUnpublished(true); $objects->setObjectTypes(['object', 'folder', 'variant']); if ($this->workerConfig->getConfiguration()->general->queryLanguage) { $objects->setLocale($this->workerConfig->getConfiguration()->general->queryLanguage); - if ($objects instanceof \Pimcore\Model\Object\Listing\Concrete) { + if ($objects instanceof Concrete) { $objects->setIgnoreLocalizedFields(false); } } else { - if ($objects instanceof \Pimcore\Model\Object\Listing\Concrete) { + if ($objects instanceof Concrete) { $objects->setIgnoreLocalizedFields(true); } }