Common/Context/ContextProvider.php
protected function createDefaultContext(): ContextInterface
    {
        $context = $this->createContext();

        if ($this->customerProvider->hasCustomer()) {
            $this->fillFromCustomer($context, $this->customerProvider->getCustomer());
        }

        $this->finalize($context);

        return $context;
    }
protected function createDefaultContext(): ContextInterface
    {
        $context = $this->createContext();

        if ($this->customerProvider->hasCustomer()) {
            $this->fillFromCustomer($context, $this->customerProvider->getCustomer());
        }

        $this->finalize($context);

        return $context;
    }
protected function createDefaultContext ( ) : ContextInterface { $ context = $ this -> createContext ( ) ; if ( $ this -> customerProvider -> hasCustomer ( ) ) { $ this -> fillFromCustomer ( $ context , $ this -> customerProvider -> getCustomer ( ) ) ; } $ this -> finalize ( $ context ) ; return $ context ; }
Creates a default context.

@return ContextInterface
Creates a default context .