Reload the source by current defined options.

@return \Beluga\Translation\Source\ISource
@throws \Exception
189074
public function reload() : ISource
   {

      $this->_translations = [];
      $this->_categories   = null;

      if ( isset( $this->_options[ 'data' ] ) )
      {
         $this->_translations = $this->_options[ 'data' ];
      }

      if ( isset( $this->_options[ 'file' ] ) && \file_exists( $this->_options[ 'file' ] ) )
      {
         try
         {
            /** @noinspection PhpIncludeInspection */
            $translations = include $this->_options[ 'file' ];
         }
         catch ( \Throwable $ex )
         {
            throw new \Exception( 'Can not load the translations file "' . $this->_options[ 'file' ] .
                                  '! Not an valid ArraySource translation file.' );
         }
         if ( ! \is_array( $translations ) || \count( $translations ) < 1 )
         {
            throw new \Exception( 'Can not load the translations file "' . $this->_options[ 'file' ] .
                                  '! Not an valid ArraySource translation file.' );
         }
         if ( $this->_useNumericId )
         {
            foreach ( $translations as $identifier => $data )
            {
               if ( ! \is_int( $identifier ) )
               {
                  throw new \Exception( 'Can not load the translations file "' . $this->_options[ 'file' ] .
                                        '! The translation data do not use numeric identifiers.' );
               }
            }
         }
         else
         {
            foreach ( $translations as $identifier => $data )
            {
               if ( ! \is_string( $identifier ) )
               {
                  throw new \Exception( 'Can not load the translations file "' . $this->_options[ 'file' ] .
                                        '! The translation data do not use string identifiers.' );
               }
            }
         }

         $this->_translations = \array_merge( $this->_translations, $translations );

      }

      return $this;

   }
23281
public function load($refresh = false, array $options = array())
    {
        if ($refresh || $this->_contents === null) {
            $this->_contents = @file_get_contents($this->_path);

            if ($this->_contents === false) {
                throw LoadException::create($this->_path);
            }

            $this->setContents($this->decode($options));
        }

        return $this;
    }
678250
public function getSource() : ?string 
    {
        if ( ! $this->hasSource()) {
            $this->setSource($this->getDefaultSource());
        }
        return $this->source;
    }
66699
public function build(): Source
    {
        if (!\file_exists($this->filePath) || !\is_readable($this->filePath)) {
            throw new FileNotFoundException(sprintf('The file %s cannot be found or is not readable', $this->filePath));
        }

        return new Source(\file_get_contents($this->filePath));
    }
94470
public function refresh() {

		$directory = new Directory($this -> directory -> getPath());
		$this -> directory = $directory -> entity();

		return $this;
	}
1335283
def _reload(self, force=False):
        
        self._config_map = dict()
        self._registered_env_keys = set()
        self.__reload_sources(force)
        self.__load_environment_keys()
        self.verify()
        self._clear_memoization()
483116
public function reload()
    {
        $this->configuration = null;

        $this->load($this->domDocument, $this->cachePath, $this->xmlSchemaFile);
    }
1194709
public function revive()
    {
        if ($this->isStale !== true) {
            return $this;
        }
        
        $request = $this->buildGlobalEnvironment();
        
        return $request
            ->withServerParams($this->getServerParams())
            ->withCookieParams($this->getCookieParams())
            ->withQueryParams($this->getQueryParams())
            ->withParsedBody($this->getParsedBody())
            ->withBody(clone $this->getBody())
            ->withUploadedFiles($this->getUploadedFiles());
    }
558421
public function reload()
    {
        if ($this->root !== $this) {
            $this->root->reload();
            return;
        }
        if (! isset($this->store)) {
            return;
        }
        if (! $this->store->touch()) {
            return;
        }
        try {
            $this->store->open(false);
            $this->data = $this->store->read();
        } catch (AccessException $e) {
            throw new AccessException('Could not read configration: ' . $e->getMessage(), null, $e);
        }
        $this->store->close();
    }
797862
public function build(): Source
    {
        $combinedSource = '';

        foreach ($this->filePaths as $filePath) {
            if (!\file_exists($filePath) || !\is_readable($filePath)) {
                throw new FileNotFoundException(sprintf('The file %s cannot be found or is not readable', $filePath));
            }

            $combinedSource .= \file_get_contents($filePath);
        }

        return new Source($combinedSource);
    }
1077162
public function reload ()
		{
			$class = $this->_modelClass;

			$this->_root = $class::find()->roots()->one();
			$this->_data = $this->_root->children()->all();
			$this->buildPaths();
		}
162191
public function build(): ReloadRequest
	{
		$instance = new ReloadRequest();
		$instance->ignoreCache = $this->ignoreCache;
		$instance->scriptToEvaluateOnLoad = $this->scriptToEvaluateOnLoad;
		return $instance;
	}
250256
public function reload()
    {
        $this->getPersistenceStorage()->setWURFLLoaded(false);
        $this->remove();
        $this->invalidateCache();
        $this->init();
        $this->getPersistenceStorage()->save(self::WURFL_API_STATE, $this->getState());
    }
942687
public function refresh()
	{
		if ($this->isAuthenticated())
		{
			$url       = $this->getLink();
			$jdata     = $this->query($url, null, array('GData-Version' => 2));
			$this->xml = $this->safeXml($jdata->body);

			return $this;
		}

		return false;
	}
683999
public function refresh()
    {
        $url = self::classUrl() . "?id=" . $this->instanceId();
        list($resp, $usedOpts) = self::request(self::METHOD_GET, $url);
        $body = isset($resp['data'][0]) ? $resp['data'][0] : null;
        $this->install($body, $usedOpts);
        return $this;
    }
1369607
def refresh(self) -> None:
        
        logger.info('refreshing sources')
        for source in list(self):
            self.unload(source)

        if not os.path.exists(self.__registry_fn):
            return

        # TODO add version
        with open(self.__registry_fn, 'r') as f:
            registry = yaml.load(f)
        assert isinstance(registry, list)

        for source_description in registry:
            source = Source.from_dict(source_description)
            self.load(source)

        logger.info('refreshed sources')
1280513
def reload(self):
        

        result = self._client._get(
            self.__class__.base_url(
                self.sys['id']
            )
        )

        self._update_from_resource(result)

        return self