Container tags
The bundle supports\reuse several Symfony container tags. You may find them useful too.
Gateway tag
The tag payum.gateway
could be used if you want to register your service as a gateway gateway. The service must implement Payum\Core\GatewayInterface
.
Attributes:
factory - define if you want later add actions or extensions to all gateways created by this factory.
gateway - define if you want later add actions or extensions to this gateway.
Action tag
The tag payum.action
could be used if you want to register your service as an action. The service must implement Payum\Core\Action\ActionInterface
.
Attributes:
factory - define if you want to add the action to gateways created by the factory with given name.
gateway - define if you want to add the action to a gateway with given name
all - define if you want to add the action to all gateways
prepend - define if you want your action to be put at the beginning.
alias - you can use alias if you' like to overwrite the default action or add a good looking name
Api tag
The tag payum.api
could be used if you want to register your service as an api. The service could be any object.
Attributes:
factory - define if you want to add the extension to gateways created by the factory with given name.
gateway - define if you want to add the extension to a gateway with given name
all - define if you want to add the extension to all gateways
prepend - define if you want your extension to be put at the beginning.
alias - you can use alias if you' like to overwrite the default action or add a good looking name
Extension tag
The tag payum.extension
could be used if you want to register your service as an extension. The service must implement Payum\Core\Extension\ExtensionInterface
.
Attributes:
factory - define if you want to add the extension to gateways created by the factory with given name.
gateway - define if you want to add the extension to a gateway with given name
all - define if you want to add the extension to all gateways
prepend - define if you want your extension to be put at the beginning.
alias - you can use alias if you' like to overwrite the default action or add a good looking name
Gateway factory tag
The tag payum.gateway_factory
could be used if you want to register your service as a gateway factory. The service must implement Payum\Core\GatewayFactoryInterface
.
Attributes:
name - The name of the factory
human_name - The name shown to humans, in the backend for example.
Supporting Payum
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:
Last updated