Skip to content
This repository was archived by the owner on Oct 23, 2019. It is now read-only.
This repository was archived by the owner on Oct 23, 2019. It is now read-only.

How to inject dependency in BaseSocketListener subclass? #21

@gianlucapisati

Description

@gianlucapisati

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions