if I inject the dependency that I need inside the constructor it doesn't work
/**
* MyClass constructor.
*/
public function __construct(MessageService $messageService)
{
$this->clients = new \SplObjectStorage();
$this->messageService = $messageService;
}