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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions