We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4122acf commit 53d5097Copy full SHA for 53d5097
1 file changed
src/Model/ServiceLocator.php
@@ -23,7 +23,7 @@ public function locate(
23
\Spameri\Elastic\Entity\ElasticEntityInterface $entity,
24
): \Spameri\Elastic\Model\ServiceInterface
25
{
26
- $entityName = \get_class($entity);
+ $entityName = $entity::class;
27
$serviceName = \str_replace('Entity', 'Model', $entityName . 'Service');
28
29
/** @var \Spameri\Elastic\Model\ServiceInterface $service */
0 commit comments