the services subkey (line 7) allows to register class instances; the invokables subkey (line 11) allows to register full class name of a service; the service will be instantiated using lazy loading; the factories subkey (line 15) allows for registering a factory, which is able to create instances of a single service; the abstract_factories (line 19) can be used for registering abstract factories, which are able to register several services by name; the aliases subkey (line 23) provides an ability to register an alias for a service. the shared subkey (line 27) allows to specify which services must be non-shared.
'service_manager' => [ 'factories' => [ // Register CurrencyConverter service. CurrencyConverter::class => InvokableFactory::class ], 'aliases' => [ // Register an alias for the CurrencyConverter service. 'CurConv' => CurrencyConverter::class ],
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.