Comments (1)
Hello John,
thanks for taking an interest in the library. I see your point in failing upon registering the optional, implicitly unwrapped service or service with too many dependencies. The reason why the check is not done in registration is performance. To check the type we actually have to parse the result of String(describing: Service.Type)
using a simple TypeParser. That would negatively affect performance if it would have to be done for every registered service. Second reason is that these warnings were only meant as hints when something fails. There might be false positives which would prevent registering otherwise perfectly fine services.
from swinjectautoregistration.
Related Issues (20)
- Framework size HOT 1
- Xcode 10.2 Support HOT 2
- Release Swift5 version HOT 1
- Possible Limitation of SwinjectAutoregistration Involving Initializers HOT 2
- Mix dependencies with and without arguments HOT 1
- More auto extensions HOT 3
- Autoregistration for property injection HOT 9
- Auto-register on resolve HOT 1
- SwinjectAutoregistration crashes on Xcode 12.0 (12A7209) HOT 5
- Swinject crash on iOS 14 HOT 4
- Showing Ambiguous use of 'init' when opening the project on Xcode version 12.0 + HOT 3
- Reason for container.autoregister with max of 3 arguments only HOT 1
- arm64 is missing from ARCHS HOT 4
- How to auto register when init has default arguments? HOT 1
- Allow dynamic in Package.swift HOT 2
- Support for Xcode13 HOT 5
- Wrong version of Swinject on podspec HOT 7
- Build fails on Carthage without xcframeworks HOT 1
- the path does not point to a valid framework HOT 2
- Publish new dot release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swinjectautoregistration.