provider_collection
class provider_collection extends service_collection
Collection of auth providers to be configured at container compile time.
Properties
protected ContainerInterface | $container | from service_collection | |
protected array | $service_classes | from service_collection | |
protected config | $config |
Methods
add_service_class(string $service_id, string $class)
Add a service's class to the collection
from
service_collection
object
get_provider(string $provider_name = '')
Get an auth provider.
Details
at line 32
__construct(ContainerInterface $container, config $config)
Constructor
in
service_collection at line 47
getIterator()
{@inheritdoc}
in
service_collection at line 55
offsetGet($index)
{@inheritdoc}
in
service_collection at line 66
void
add(string $name)
Add a service to the collection
in
service_collection at line 77
add_service_class(string $service_id, string $class)
Add a service's class to the collection
in
service_collection at line 87
array
get_service_classes()
Get services' classes
in
service_collection at line 98
mixed
get_by_class($class)
Returns the service associated to a class
at line 50
object
get_provider(string $provider_name = '')
Get an auth provider.