Knp\Bundle\KnpBundlesBundle\Badge\BadgeGenerator::getBadgeFile PHP Method

getBadgeFile() protected method

Get badge image full path
protected getBadgeFile ( Bundle $bundle, string $type = self::LONG ) : string
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle
$type string
return string
    protected function getBadgeFile(Bundle $bundle, $type = self::LONG)
    {
        return $this->cacheDir . '/badges/' . $type . '/' . $bundle->getOwnerName() . '-' . $bundle->getName() . '.png';
    }