- Drupal 8 Module Development
- Daniel Sipos
- 77字
- 2021-07-02 15:45:15
Tagged services
Service definitions can also be tagged in order to inform the container as to a specific purpose that they serve. 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.
推薦閱讀
- CentOS 7 Server Deployment Cookbook
- INSTANT MinGW Starter
- 面向STEM的Scratch創(chuàng)新課程
- Java Web程序設(shè)計(jì)
- Drupal 8 Configuration Management
- Learning Unity 2D Game Development by Example
- C語(yǔ)言程序設(shè)計(jì)上機(jī)指導(dǎo)與習(xí)題解答(第2版)
- NoSQL數(shù)據(jù)庫(kù)原理
- 一塊面包板玩轉(zhuǎn)Arduino編程
- 智能手機(jī)故障檢測(cè)與維修從入門到精通
- 深度探索Go語(yǔ)言:對(duì)象模型與runtime的原理特性及應(yīng)用
- Photoshop CC移動(dòng)UI設(shè)計(jì)案例教程(全彩慕課版·第2版)
- 從零開始構(gòu)建深度前饋神經(jīng)網(wǎng)絡(luò):Python+TensorFlow 2.x
- Yii2 By Example
- ASP.NET本質(zhì)論