Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 416c683

Browse files
committed
fix: base worker private
1 parent 1f6457b commit 416c683

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/AppBundle/Worker/BaseWorker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(EntityManagerInterface $em, OperationApi $operationA
4040
* Appends a string to the message of the job.
4141
* @param string $message
4242
*/
43-
private function addMessage(string $message)
43+
public function addMessage(string $message)
4444
{
4545
$this->getCurrentJob()->setMessage($this->getCurrentJob()->getMessage() . "\n" . $message);
4646
}
@@ -50,7 +50,7 @@ private function addMessage(string $message)
5050
* @param $object
5151
* @return bool
5252
*/
53-
private function validation($object)
53+
public function validation($object)
5454
{
5555
$errors = $this->validator->validate($object);
5656

@@ -70,7 +70,7 @@ private function validation($object)
7070
* @param Response $response
7171
* @return bool
7272
*/
73-
private function checkForErrors(Response $response)
73+
public function checkForErrors(Response $response)
7474
{
7575
if ($response->code !== 202 && $response->code !== 200) {
7676
$this->addMessage($response->body->error);

0 commit comments

Comments
 (0)