- 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.
推薦閱讀
- 數據科學實戰手冊(R+Python)
- Spring 5.0 Microservices(Second Edition)
- Java EE 6 企業級應用開發教程
- 兩周自制腳本語言
- HTML5 Mobile Development Cookbook
- Reactive Programming With Java 9
- Learning Three.js:The JavaScript 3D Library for WebGL
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Mastering JavaScript High Performance
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- 軟件品質之完美管理:實戰經典
- ElasticSearch Cookbook(Second Edition)
- Python Interviews
- Hadoop大數據分析技術
- Julia數據科學應用