mirror of https://github.com/vapor/docs.git
parent
986d615948
commit
9dc3ac9f27
|
|
@ -176,7 +176,7 @@ services.instance(Logger.self, PrintLogger(), for: Router.self)
|
|||
|
||||
### Factorized services
|
||||
|
||||
Some services have dependencies. An extremly useful use case is TLS, where the implementation is separated from the protocol. This allows users to create a TLS socket to connect to another host with without relying on a specific implementation. Vapor uses this to better integrate with the operating system by changing the default TLS implementation from OpenSSL on Linux to the Transport Security Framework on macOS and iOS.
|
||||
Some services have dependencies. An extremly useful use case is TLS, where the implementation is separated from the protocol. This allows users to create a TLS socket to connect to another host without relying on a specific implementation. Vapor uses this to better integrate with the operating system by changing the default TLS implementation from OpenSSL on Linux to the Transport Security Framework on macOS and iOS.
|
||||
|
||||
Factorized services get access to the event loop to factorize dependencies.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue