Ejemplo n.º 1
0
 public function getProviderName(PoolInterface $pool, $providerKey = null)
 {
     if (!$providerKey) {
         $providerKey = $this->fetchProviderKey();
     }
     if ($providerKey && $pool->hasCollection($providerKey->getSlug())) {
         return $pool->getProviderNameByCollection($providerKey->getSlug());
     }
     return null;
 }
Ejemplo n.º 2
0
 public function getProviderName(PoolInterface $pool, $providerKey = null)
 {
     if (!$providerKey) {
         $providerKey = $this->fetchProviderKey();
     }
     $contextKey = $this->getSlugify()->slugify($providerKey->getSlug(), '_');
     if ($providerKey && $pool->hasCollection($contextKey)) {
         return $pool->getProviderNameByCollection($contextKey);
     }
     return null;
 }