- 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.
推薦閱讀
- Mastering Concurrency Programming with Java 8
- Boost程序庫完全開發(fā)指南:深入C++”準”標準庫(第5版)
- PWA入門與實踐
- DevOps with Kubernetes
- SpringMVC+MyBatis快速開發(fā)與項目實戰(zhàn)
- Hands-On Data Structures and Algorithms with JavaScript
- BeagleBone Media Center
- R語言數據可視化實戰(zhàn)
- Servlet/JSP深入詳解
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- The Data Visualization Workshop
- C語言程序設計學習指導與習題解答
- Highcharts Cookbook
- Getting Started with LLVM Core Libraries
- Scratch趣味編程:陪孩子像搭積木一樣學編程