{"id":16853158,"url":"https://github.com/devxoul/swinjectsafeauto","last_synced_at":"2025-04-11T07:10:22.663Z","repository":{"id":56922370,"uuid":"300048645","full_name":"devxoul/SwinjectSafeAuto","owner":"devxoul","description":"SwinjectSafeAuto allows to auto-register services to the container and verify the required services are properly registered.","archived":false,"fork":false,"pushed_at":"2020-10-16T17:46:08.000Z","size":11,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T19:40:16.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devxoul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-30T20:08:15.000Z","updated_at":"2023-07-26T13:52:46.000Z","dependencies_parsed_at":"2022-08-21T04:50:21.556Z","dependency_job_id":null,"html_url":"https://github.com/devxoul/SwinjectSafeAuto","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwinjectSafeAuto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwinjectSafeAuto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwinjectSafeAuto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwinjectSafeAuto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxoul","download_url":"https://codeload.github.com/devxoul/SwinjectSafeAuto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576548,"owners_count":19662109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:49:59.954Z","updated_at":"2025-02-19T00:31:24.321Z","avatar_url":"https://github.com/devxoul.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwinjectSafeAuto\n\nSwinjectSafeAuto allows to auto-register services to the container and verify the required services are properly registered.\n\nThis project is inspired by [SwinjectAutoregistration](https://github.com/Swinject/SwinjectAutoregistration).\n\n## Features\n\n* Auto-register services to the container.\n* Verify that required services are properly registered to the container.\n\n## Usage\n\n```swift\ncontainer.autoregister(NetworkingProtocol.self, initializer: Networking.init)\ncontainer.autoregister(MyServiceProtocol.self, initializer: MyService.init)\n\n// This method will throw an error in DEBUG build when the required services are not properly reigstered.\ntry! container.verify()\n\n// You can safely resolve services after verification.\ncontainer.resolve(MyServiceProtocol.self)\n```\n\n## Limitation\n\n* SwinjectSafeAuto cannot verify manually-registered services using `container.register()`.\n* SwinjectSafeAuto cannot be used with [SwinjectAutoregistration](https://github.com/Swinject/SwinjectAutoregistration) in the same project.\n\n## License\n\nSwinjectSafeAuto is under MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2Fswinjectsafeauto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxoul%2Fswinjectsafeauto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2Fswinjectsafeauto/lists"}