예제 #1
0
 /**
  * @param Provider $provider
  * @return Modifier[]
  */
 public function getProviderModifiers(Provider $provider)
 {
     $modifiers = [];
     foreach ($provider->getProviderPlugin()->getModifierData() as $key => $value) {
         $modifiers[] = new Modifier($key, $value, $provider->getMethodPlugin(), $provider);
     }
     return $modifiers;
 }
예제 #2
0
 protected function getMethodForProvider($providerId)
 {
     return Provider::load($providerId)->getMethodPlugin();
 }