예제 #1
0
파일: Signer.php 프로젝트: mage2pro/core
 /**
  * 2016-08-27
  * @param object $caller
  * @param array(string => mixed) $p
  * @return string
  */
 private static function _sign($caller, array $p)
 {
     /** @var string $type */
     $type = df_trim_text_left(df_caller_f(), 'sign');
     /** @var self $i */
     $i = df_create(df_con($caller, df_cc_class('Signer', $type), df_con($caller, 'Signer')), $p);
     $i->_caller = $caller;
     return $i->sign();
 }
예제 #2
0
/**
 * 2016-03-25
 * Применение @uses dfa_flatten() делает возможным вызовы типа:
 * df_cc_class_uc('aa', ['bb', 'cc']) => Aa\Bb\Cc
 * Мы используем это в модулях Stripe и Checkout.com.
 * @see df_cc_class()
 * @param string[] ...$args
 * @return string
 */
function df_cc_class_uc(...$args)
{
    return df_cc_class(df_ucfirst(dfa_flatten($args)));
}