Property | Type | Description | |
---|---|---|---|
$customerManager | Sonata\Component\Customer\CustomerManagerInterface | ||
$locale | string | ||
$securityContext | Symfony\Component\Security\Core\SecurityContextInterface | ||
$session | Symfony\Component\HttpFoundation\Session\Session |
Method | Description | |
---|---|---|
__construct ( CustomerManagerInterface $customerManager, Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\Security\Core\SecurityContextInterface $securityContext, Sonata\IntlBundle\Locale\LocaleDetectorInterface $localeDetector ) | ||
get ( ) : Sonata\Component\Customer\CustomerInterface | Get the customer. |
Method | Description | |
---|---|---|
getBasket ( ) : Sonata\Component\Basket\BasketInterface |
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 get ( ) : Sonata\Component\Customer\CustomerInterface | ||
return | Sonata\Component\Customer\CustomerInterface |
protected CustomerManagerInterface,Sonata\Component\Customer $customerManager | ||
return | Sonata\Component\Customer\CustomerManagerInterface |
protected SecurityContextInterface,Symfony\Component\Security\Core $securityContext | ||
return | Symfony\Component\Security\Core\SecurityContextInterface |