- ซึ่งเท่าที่ทราบก็คือจะต้องไปเพื่อการเรียกใช้งานไฟล์ ใน ไฟล์ services.yml
โดยผมได้ลองปรับการเรียกใช้งานเข้าไปนั้งนี้
โค้ด: เลือกทั้งหมด
notification.type.board:
class: mindphp\m_anonymous\notification\board
shared: false
parent: notification.type.base
calls:
- [set_user_loader, ['@user_loader']]
- [set_config, ['@config']]
tags:
- { name: notification.type }