src/Mremi/UrlShortener/Model/LinkManager.php
public function findOneByProviderAndLongUrl($providerName, $longUrl)
    {
        $provider = $this->chainProvider->getProvider($providerName);

        $link = $this->create();
        $link->setProviderName($provider->getName());
        $link->setLongUrl($longUrl);

        $provider->shorten($link);

        return $link;
    }
public function findOneByProviderAndLongUrl($providerName, $longUrl)
    {
        $provider = $this->chainProvider->getProvider($providerName);

        $link = $this->create();
        $link->setProviderName($provider->getName());
        $link->setLongUrl($longUrl);

        $provider->shorten($link);

        return $link;
    }
{@inheritdoc}