Contracts and utilities for the webware-* ecosystem.
composer require webware/webware-coreThis 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:
Mezzio\Authentication\ConfigProviderWebware\Core\ConfigProviderWebware\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.