Sonata\Component\Basket\BaseBasketFactory::getSessionVarName PHP 메소드

getSessionVarName() 보호된 메소드

Get the name of the session variable.
protected getSessionVarName ( Sonata\Component\Customer\CustomerInterface $customer = null ) : string
$customer Sonata\Component\Customer\CustomerInterface
리턴 string
    protected function getSessionVarName(CustomerInterface $customer = null)
    {
        if (null === $customer || null === $customer->getId()) {
            return self::SESSION_BASE_NAME . 'new';
        }
        return self::SESSION_BASE_NAME . $customer->getId();
    }