Sonata\ProductBundle\Block\RecentProductsBlockService::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Symfony\Bridge\Doctrine\RegistryInterface $registry, Sonata\Component\Currency\CurrencyDetectorInterface $currencyDetector, string $productClass )
$name string
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$registry Symfony\Bridge\Doctrine\RegistryInterface
$currencyDetector Sonata\Component\Currency\CurrencyDetectorInterface
$productClass string
    public function __construct($name, EngineInterface $templating, RegistryInterface $registry, CurrencyDetectorInterface $currencyDetector, $productClass)
    {
        $this->productRepository = $registry->getManager()->getRepository($productClass);
        $this->currencyDetector = $currencyDetector;
        parent::__construct($name, $templating);
    }