bitrix-service-locator
CommunityDecouple Bitrix apps with a DI ServiceLocator.
Authorbxmaximum
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Bitrix applications often suffer from tight coupling and hard-to-test code. ServiceLocator (PSR-11) offers a centralized, testable way to register and resolve services, enabling constructor injection and decoupled controllers.
Core Features & Use Cases
- Registration of services in .settings.php under the services section.
- Autowiring and resolving dependencies via has()/get() in controllers, services, and console commands.
- Binding interfaces to implementations to support swapping components and easier testing.
- Use Case: Refactor legacy controllers to depend on interfaces instead of concrete classes for maintainability.
Quick Start
Register your services in the module's .settings.php under the services key, then inject dependencies via constructor or controller action parameters.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bitrix-service-locator Download link: https://github.com/bxmaximum/bitrix_ai_challenge/archive/main.zip#bitrix-service-locator Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.