PHP Класс Sonata\Component\Customer\CustomerSelector

Наследование: implements Sonata\Component\Customer\CustomerSelectorInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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