services.yml format requirements

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
durangod
Registered User
Posts: 709
Joined: Tue Nov 03, 2009 1:26 pm
Name: Dave

services.yml format requirements

Post by durangod »

hi, where can i find the phpbb 3.3 services.yml format requirements?

I need to figure out why this is not valid, and what i need to add to it on a very simple extension.

Code: Select all


services:
    devname.extname.listener:
        class: devname\extname\event\listener
        arguments:
            - @config
            - @template
        tags:
            - { name: event.listener }	


thanks

UPDATE: nevermind i added single quotes around arguments, that was the issue.
Last edited by durangod on Fri Feb 28, 2020 8:50 pm, edited 1 time in total.
User avatar
Steve
Registered User
Posts: 1092
Joined: Tue Apr 07, 2009 7:48 pm
Location: UK ,up north!!
Name: Steven Clark
Contact:

Re: services.yml format requirements

Post by Steve »

User avatar
durangod
Registered User
Posts: 709
Joined: Tue Nov 03, 2009 1:26 pm
Name: Dave

Re: services.yml format requirements

Post by durangod »

Thanks for the link :)
Post Reply

Return to “Extension Writers Discussion”