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.

composer does not add entry for "Zend\Session\ValidatorChain" with option "--classmap-authoritative" to "composer/autoload_classmap.php" #31

@jonathanmaron

Description

@jonathanmaron

When installing:

zendframework/zend-session (2.6.1)

using:

composer update --classmap-authoritative

The following error is returned:

Fatal error: Class 'Zend\Session\ValidatorChain' not found in /var/www/www.example.com/vendor/zendframework/zend-session/src/SessionManager.php on line 360

The application in question uses exclusively composer for auto-loading of all application libraries and dependency libraries.

The file:

composer/autoload_classmap.php

does not contain an entry for:

Zend\Session\ValidatorChain

This is because the file:

zendframework/zend-session/src/ValidatorChain.php 

does not contain a class definition. Instead, it contains a Polyfill for ValidatorChain. Therefore, the composer "--classmap-authoritative" option cannot locate the class "Zend\Session\ValidatorChain". As far as composer is concerned, it does not exist.

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