Skip to content

Injecting SharedEventManager #89

Description

@novrm

Why in \ZfcUser\EventManager\EventProvider we injected SharedEventManager

    public function getEventManager()
    {
        if (!$this->events instanceof EventManagerInterface) {
            $this->setEventManager(new EventManager(new SharedEventManager()));
        }
        return $this->events;
    }

... but in \ZfcBase\EventManager\EventProvider - not?

    public function getEventManager()
    {
        if (!$this->events instanceof EventManagerInterface) {
            $this->setEventManager(new EventManager());
        }
        return $this->events;
    }

Its situation leads to non correct working events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions