Symfony Messanger getPathInfo() on null error

28 Views Asked by At

some one help me for that when I save a new que data then I runned command but I get this error failed: Call to a member function getPathInfo() on null what is the problem ? What I doing wrong or missing ?`

<?php

namespace App\Message;

class POGenerateClickSaveMessage {

    private $itemId;
    private $lastStatus;


    public function __construct($itemId, $lastStatus){
        $this->itemId = $itemId;
        $this->lastStatus = $lastStatus;
     }


    public function getItem()
    {
        return $this->itemId;
    }
    public function getItemId(){
        return $this->itemId;

    }

    public function getLastStatus(){
        return $this->lastStatus;
    }
}
0

There are 0 best solutions below