- Drupal 8 Module Development
- Daniel Sipos
- 75字
- 2021-07-02 12:22:39
Tagged services
Service definitions can also be tagged in order to inform the container if they serve a specific purpose. Typically, these are picked up by a collector service that uses them for a given subsystem. As an example, if we wanted to tag the hello_world.salutation service, it would look something this:
hello_world.salutation:
class: Drupal\hello_world\HelloWorldSalutation
tags:
- {name: tag_name}
Tags can also get a priority, as we will see in some examples later in this book.
推薦閱讀
- Getting Started with Gulp(Second Edition)
- Spring Boot開發與測試實戰
- 深入理解Bootstrap
- FreeSWITCH 1.8
- Learning RabbitMQ
- Mastering Natural Language Processing with Python
- C程序設計案例教程
- Scala編程實戰(原書第2版)
- IPython Interactive Computing and Visualization Cookbook
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- 從零開始學Unity游戲開發:場景+角色+腳本+交互+體驗+效果+發布
- JavaScript Unit Testing
- Swift Essentials(Second Edition)
- Java Web入門很輕松(微課超值版)
- Spring MVC Cookbook