Dependency Injection in PHP | Create a Service Container from Scratch | Use PHP-DI

Поделиться
HTML-код
  • Опубликовано: 16 май 2024
  • Learn what dependency injection is, and how to do it in PHP.
    Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
    Topics covered:
    • Dependency injection
    • Service containers
    • Autowiring
    • Third-party DI containers like PHP-DI
    All source code shown is free to download:
    ‣ gist.github.com/daveh/80901d2...
    Links shown in the video:
    ‣ laravel.com/docs/10.x/container
    ‣ symfony.com/doc/current/compo...
    ‣ www.php.net/manual/en/reflect...
    ‣ php-di.org/
    Videos:
    ‣ Securely Storing PHP Configuration Settings
    • Securely Storing PHP C...
    Image used in thumbnail:
    ‣ www.freepik.com/icon/uml_9539813
    00:00 Introduction
    00:22 What is dependency injection?
    03:46 Create a DI container
    05:27 Autowiring
    11:00 Defining services
    13:52 Use PHP-DI
    15:48 Summary
    #PHP #dependencyinjection #laravel #symfony
  • НаукаНаука

Комментарии • 26