netgen / NetgenInformationCollectionBundle

Information collection alike feature for eZ Publish 5/eZ Platform
https://netgen.io
GNU General Public License v2.0
19 stars 8 forks source link

Use alias from service definition rather than hard coded name #2

Closed MarioBlazek closed 7 years ago

MarioBlazek commented 7 years ago

Current service definition

tags:
    - { name: netgen_information_collection.action }

and getName() method must be implemented

public function getName()
    {
        return 'email';
    }

Better solution is to add alias to service definition:

tags:
    - { name: netgen_information_collection.action, alias: email }