src/Service/SettingsProvider.php
protected function getSettingsFromRealSource($namespace)
    {
        $arraySettings = $this->getSettingsArray($namespace);
        $namespaceOptions = $this->options->getNamespaceOptions($namespace);
        $entity = clone($namespaceOptions->getEntityPrototype());
        if (!empty($arraySettings)) {
            $hydrator = $this->namespaceHydratorProvider->getHydrator($namespace);
            $entity = $hydrator->hydrate($arraySettings, $entity);
        }

        return $entity;
    }
protected function getSettingsFromRealSource($namespace)
    {
        $arraySettings = $this->getSettingsArray($namespace);
        $namespaceOptions = $this->options->getNamespaceOptions($namespace);
        $entity = clone($namespaceOptions->getEntityPrototype());
        if (!empty($arraySettings)) {
            $hydrator = $this->namespaceHydratorProvider->getHydrator($namespace);
            $entity = $hydrator->hydrate($arraySettings, $entity);
        }

        return $entity;
    }
protected function getSettingsFromRealSource ( $ namespace ) { $ arraySettings = $ this -> getSettingsArray ( $ namespace ) ; $ namespaceOptions = $ this -> options -> getNamespaceOptions ( $ namespace ) ; $ entity = clone ( $ namespaceOptions -> getEntityPrototype ( ) ) ; if ( ! empty ( $ arraySettings ) ) { $ hydrator = $ this -> namespaceHydratorProvider -> getHydrator ( $ namespace ) ; $ entity = $ hydrator -> hydrate ( $ arraySettings , $ entity ) ; } return $ entity ; }
Gets settings from real source, most probably from database

@param  string $namespace
@return object
Gets settings from real source most probably from database