Sonata\Component\Customer\CustomerSelector::__construct PHP Method

__construct() public method

public __construct ( CustomerManagerInterface $customerManager, Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\Security\Core\SecurityContextInterface $securityContext, Sonata\IntlBundle\Locale\LocaleDetectorInterface $localeDetector )
$customerManager CustomerManagerInterface
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$securityContext Symfony\Component\Security\Core\SecurityContextInterface
$localeDetector Sonata\IntlBundle\Locale\LocaleDetectorInterface
    public function __construct(CustomerManagerInterface $customerManager, SessionInterface $session, SecurityContextInterface $securityContext, LocaleDetectorInterface $localeDetector)
    {
        $this->customerManager = $customerManager;
        $this->session = $session;
        $this->securityContext = $securityContext;
        $this->locale = $localeDetector->getLocale();
    }