Important
You are browsing documentation for version 5.0 of OroCommerce, OroCRM, and OroPlatform, maintained until August 2024 and supported until March 2026. See version 5.1 (the latest LTS version) of the Oro documentation for information on latest features.
See our Release Process documentation for more information on the currently supported and upcoming releases.
System Aware Resolver
The SystemAwareResolver class supports the following expressions:
- %parameter% - gets a parameter from the DI container
- $parameter$ - gets a parameter from the context
- AcmeClass::MY_CONST - gets a constant
- AcmeClass::myMethod - calls the static method without parameters
- AcmeClass::myMethod() - calls the static method without parameters
- AcmeClass::myMethod($param1$, %param2%) - calls the static method with parameters
- @service->myMethod - calls service’s method without parameters
- @service->myMethod() - calls service’s method without parameters
- @service->myMethod($param1$, %param2%) - calls service’s method with parameters
- @service - gets the instance of a service
You can also use parameters inside expressions, for example:
- %acme.class_name%::myMethod() - calls the static method without parameters
- Hello $user_name$