Skip to content

Commit

Permalink
Import namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
martineiber committed Dec 2, 2024
1 parent 501fbef commit 40118ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Class/Service/FieldCollection/LayoutDefinitionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
use Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\FieldCollection\LayoutDefinitionHydratorInterface;
use Pimcore\Bundle\StudioBackendBundle\Class\Schema\FieldCollection\LayoutDefinition;
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException;
use Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\ClassDefinitionInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections;

/**
* @internal
Expand Down Expand Up @@ -91,7 +91,7 @@ private function getLayoutDefinitionByType(string $name): LayoutDefinition
private function collectFieldCollectionTypes(ClassDefinitionInterface $classDefinition): void
{
foreach ($classDefinition->getFieldDefinitions() as $fieldDefinition) {
if ($fieldDefinition instanceof DataObject\ClassDefinition\Data\Fieldcollections) {
if ($fieldDefinition instanceof Fieldcollections) {
$this->fieldCollectionTypes = [...$this->fieldCollectionTypes, ...$fieldDefinition->getAllowedTypes()];
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Class/Service/ObjectBrick/LayoutDefinitionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
use Pimcore\Bundle\StudioBackendBundle\Class\Hydrator\ObjectBrick\LayoutDefinitionHydratorInterface;
use Pimcore\Bundle\StudioBackendBundle\Class\Schema\ObjectBrick\LayoutDefinition;
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException;
use Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\ClassDefinitionInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks;

/**
* @internal
Expand Down Expand Up @@ -88,7 +88,7 @@ private function getLayoutDefinitionByType(string $name): LayoutDefinition
private function collectFieldCollectionTypes(ClassDefinitionInterface $classDefinition): void
{
foreach ($classDefinition->getFieldDefinitions() as $fieldDefinition) {
if ($fieldDefinition instanceof DataObject\ClassDefinition\Data\Objectbricks) {
if ($fieldDefinition instanceof Objectbricks) {
$this->objectBrickTypes = [...$this->objectBrickTypes, ...$fieldDefinition->getAllowedTypes()];
}
}
Expand Down

0 comments on commit 40118ef

Please sign in to comment.