|
|
@@ -6,7 +6,7 @@ namespace App\Message\Handler\Parameters;
|
|
|
use App\Message\Command\Parameters\AverageChange;
|
|
|
use App\Repository\Education\EducationNotationRepository;
|
|
|
use App\Repository\Organization\ParametersRepository;
|
|
|
-use App\Service\Elasticsearch\EducationNotationUpdate;
|
|
|
+use App\Service\Elasticsearch\EducationNotationUpdater;
|
|
|
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
|
|
|
|
|
|
/**
|
|
|
@@ -15,7 +15,7 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
|
|
|
class AverageChangeHandler implements MessageHandlerInterface
|
|
|
{
|
|
|
public function __construct(
|
|
|
- private EducationNotationUpdate $educationNotationUpdate,
|
|
|
+ private EducationNotationUpdater $educationNotationUpdater,
|
|
|
private EducationNotationRepository $educationNotationRepository,
|
|
|
private ParametersRepository $parametersRepository
|
|
|
) {}
|
|
|
@@ -29,7 +29,7 @@ class AverageChangeHandler implements MessageHandlerInterface
|
|
|
$parameter = $this->parametersRepository->find($averageChange->getParametersId());
|
|
|
if($parameter){
|
|
|
$educationNotations = $this->educationNotationRepository->findAllEducationNotation($parameter->getOrganization());
|
|
|
- $this->educationNotationUpdate->update($educationNotations);
|
|
|
+ $this->educationNotationUpdater->update($educationNotations);
|
|
|
}
|
|
|
}
|
|
|
}
|