Tag

Service Container

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Nov 22, 2024 · Backend Development

Laravel Dependency Injection: Creating Services and Using Constructor or Method Injection

This guide explains how Laravel's service container enables dependency injection, walks through creating a GreetingService, and demonstrates both constructor and method injection techniques for injecting services into controllers, including code examples and a comparison of the two approaches.

Backend DevelopmentDependency InjectionLaravel
0 likes · 4 min read
Laravel Dependency Injection: Creating Services and Using Constructor or Method Injection
php中文网 Courses
php中文网 Courses
Aug 15, 2024 · Backend Development

Applying the Interface Programming Principle in Laravel: From SMS to Email Notifications

This article explains the interface‑programming principle, demonstrates its benefits with SMS and email notification services in Laravel, shows how to refactor code using an INotification interface, and configures the service container to switch implementations seamlessly, illustrating a flexible, maintainable backend design.

Backend DevelopmentDependency InjectionLaravel
0 likes · 8 min read
Applying the Interface Programming Principle in Laravel: From SMS to Email Notifications
Python Programming Learning Circle
Python Programming Learning Circle
Sep 13, 2018 · Backend Development

How Laravel Instantiates Its Service Container: A Step‑by‑Step Guide

This article explains how Laravel creates and configures its service container during a request, detailing the roles of the Illuminate\Container\Container class, the Application subclass, and the bootstrap files that load autoloading and bind core services to produce the global $app instance.

Backend DevelopmentDependency InjectionLaravel
0 likes · 2 min read
How Laravel Instantiates Its Service Container: A Step‑by‑Step Guide
Java Architect Essentials
Java Architect Essentials
Jul 2, 2018 · Backend Development

Understanding Dubbo Service Containers: Spring, Jetty, and Log4j Integration

The article explains how Dubbo's standalone service container loads optional Spring, Jetty, and Log4j modules, details their configuration properties, demonstrates various startup methods, and provides a complete Java implementation of the SpringContainer with start and stop logic, followed by a test main class.

DubboJavaService Container
0 likes · 5 min read
Understanding Dubbo Service Containers: Spring, Jetty, and Log4j Integration
Architecture Digest
Architecture Digest
Oct 29, 2016 · Backend Development

Understanding Laravel’s Core Concepts: Lifecycle, Service Container, Dependency Injection, Contracts, and Facades

This article explains Laravel’s underlying architecture by detailing PHP’s execution phases, Laravel’s request lifecycle, the bootstrap process, the service container, dependency injection, binding mechanisms, and the role of contracts and facades, providing practical code examples for each concept.

Backend DevelopmentContractsDependency Injection
0 likes · 16 min read
Understanding Laravel’s Core Concepts: Lifecycle, Service Container, Dependency Injection, Contracts, and Facades