File: D:/HostingSpaces/SBogers10/plateau.komma.nl/app/Exceptions/Solutions/CheckComponentTypeSeed.php
<?php declare(strict_types=1);
namespace App\Exceptions\Solutions;
use Facade\IgnitionContracts\Solution;
use Komma\KMS\Components\Component\ComponentSaveState;
use Komma\KMS\Components\ComponentType\ComponentTypeFactory;
use Komma\KMS\Components\ComponentType\Types\AbstractComponentType;
class CheckComponentTypeSeed implements Solution
{
public function getSolutionTitle(): string
{
return 'Check component type seed';
}
public function getSolutionDescription(): string
{
return 'Solve this problem by checking any seeds that seed components into the database. '.
'Your are possible seeding the database with invalid save state data. For example, some seeds do use '.ComponentSaveState::class.' to build an object that represents a component\'s save state. The attribute keys that are passed in that saveState using its setData method, must exist on the matching component type implementation. That type is being set on the ComponentSaveState using its setComponentTypeId method. And that type is registered to an implementation of '.AbstractComponentType::class.' with the registerType method of the '.ComponentTypeFactory::class;
}
public function getDocumentationLinks(): array
{
return [
];
}
}