Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1007 Bytes

system_aware_resolver.md

File metadata and controls

20 lines (16 loc) · 1007 Bytes

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

Also it is possible to use parameters inside expressions, for example:

  • %acme.class_name%::myMethod() - calls the static method without parameters
  • Hello $user_name$