Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Error Running Sessions (v2.7) with EventManager (v3) #62

Open
@JPG-Consulting

Description

@JPG-Consulting

In ValidatorChain.php:

use Zend\EventManager\GlobalEventManager;`

// ...

if (class_exists(GlobalEventManager::class)) {
    class_alias(Validator\AbstractValidatorChainEM2::class, AbstractValidatorChain::class);
} else {
    class_alias(Validator\AbstractValidatorChainEM3::class, AbstractValidatorChain::class);
}

However GlobalEventManager is not available since version 2.6 of the EventManager and therefor causes problems with version 3.

PHP 5.6 running on WAMP Server.

I don't know if this happens all the time, guess it will... What I've done is NOT loading the module and initialize the session manager by hand:

$sessionConfig = new SessionConfig();
$session = new SessionManager($sessionConfig);
$session->start();

It will cause the error due to the missing GlobalEventManager class and if you bring the class from version 2.6 then the next reported error comes allong due to the missing callabledeclaration in AbstractValidatorChainEM2::attach method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions