PHP 클래스 Sonata\Component\Customer\CustomerSelector

상속: implements Sonata\Component\Customer\CustomerSelectorInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$customerManager Sonata\Component\Customer\CustomerManagerInterface
$locale string
$securityContext Symfony\Component\Security\Core\SecurityContextInterface
$session Symfony\Component\HttpFoundation\Session\Session

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
getBasket ( ) : Sonata\Component\Basket\BasketInterface

메소드 상세

__construct() 공개 메소드

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

get() 공개 메소드

Get the customer.
public get ( ) : Sonata\Component\Customer\CustomerInterface
리턴 Sonata\Component\Customer\CustomerInterface

프로퍼티 상세

$customerManager 보호되어 있는 프로퍼티

protected CustomerManagerInterface,Sonata\Component\Customer $customerManager
리턴 Sonata\Component\Customer\CustomerManagerInterface

$locale 보호되어 있는 프로퍼티

protected string $locale
리턴 string

$securityContext 보호되어 있는 프로퍼티

protected SecurityContextInterface,Symfony\Component\Security\Core $securityContext
리턴 Symfony\Component\Security\Core\SecurityContextInterface

$session 보호되어 있는 프로퍼티

protected Session,Symfony\Component\HttpFoundation\Session $session
리턴 Symfony\Component\HttpFoundation\Session\Session