Sonata\OrderBundle\Block\RecentOrdersBlockService::__construct PHP Method

__construct() public method

public __construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Sonata\Component\Order\OrderManagerInterface $orderManager, Sonata\Component\Customer\CustomerManagerInterface $customerManager, Symfony\Component\Security\Core\SecurityContextInterface $securityContext, Sonata\AdminBundle\Admin\Pool $adminPool = null )
$name string
$templating Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$orderManager Sonata\Component\Order\OrderManagerInterface
$customerManager Sonata\Component\Customer\CustomerManagerInterface
$securityContext Symfony\Component\Security\Core\SecurityContextInterface
$adminPool Sonata\AdminBundle\Admin\Pool
    public function __construct($name, EngineInterface $templating, OrderManagerInterface $orderManager, CustomerManagerInterface $customerManager, SecurityContextInterface $securityContext, Pool $adminPool = null)
    {
        $this->orderManager = $orderManager;
        $this->customerManager = $customerManager;
        $this->securityContext = $securityContext;
        $this->adminPool = $adminPool;
        parent::__construct($name, $templating);
    }