Example #1
0
 /**
  * Generate the callback definition.
  *
  * The service name is only required if the default service name contao.dca.TL_TABLE is not used.
  *
  * @param string $serviceName Service name or callback method.
  * @param string $methodName  Callback method name.
  *
  * @return callable
  */
 public static function callback($serviceName, $methodName = null)
 {
     if (!$methodName) {
         $methodName = $serviceName;
         $serviceName = static::$serviceName ?: 'contao.dca.' . static::getName();
     }
     return CallbackFactory::service($serviceName, $methodName);
 }
 /**
  * Generate the callback definition.
  *
  * @param string $methodName Callback method name.
  *
  * @return callable
  */
 public static function callback($methodName)
 {
     return CallbackFactory::service('leaflet.dca.validator', $methodName);
 }
 /**
  * Generate the callback definition.
  *
  * @param string $methodName Callback method name.
  *
  * @return callable
  */
 public static function callback($methodName)
 {
     return CallbackFactory::service('leaflet.dca.frontend-integration', $methodName);
 }