Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

125 Commits

Folders and files

Repository files navigation

webware/webware-core

PHP Version Latest Version License Continuous Integration codecov Mutation testing badge

Contracts and utilities for the webware-* ecosystem.

Installation

composer require webware/webware-core

Provider load order

This package declares an ecosystem-wide alias so that every consumer resolves the Mezzio authentication contract to the Webware implementation:

'aliases' => [
    Mezzio\Authentication\UserInterface::class => Webware\Core\UserInterface::class,
],

The implementation behind that alias is registered by webware/webware-usermanager, and mezzio/mezzio-authentication declares a factory for the same service name. Register the providers in this order in config/config.php so the alias is the final word on that key:

  1. Mezzio\Authentication\ConfigProvider
  2. Webware\Core\ConfigProvider
  3. Webware\UserManager\ConfigProvider

The component installer adds providers in the order packages were installed, which is not necessarily this order - check config/config.php after installing and reorder if needed. Any provider that declares an entry for Mezzio\Authentication\UserInterface competes for the same service name and the last one aggregated wins, so keep the Webware providers after mezzio/mezzio-authentication, with core before usermanager.

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages