zf-fr / zfr-oauth2-server

PHP library for creating an OAuth 2 server (currently proof of concept)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Q: container names be interface

basz opened this issue · comments

Should container names reference Interface where ever possible?

ResourceServer vs ResourceServerInterface
AuthorizationServer vs AuthorizationServerInterface

example:

https://github.com/zf-fr/zfr-oauth2-server/blob/master/src/Container/ResourceServerMiddlewareFactory.php#L38

$authorizationServer = $container->get(AuthorizationServer::class);

$authorizationServer = $container->get(AuthorizationServer::class);

👍 for referencing interfaces