Reload the source by current defined options.

@return \Niirrty\Translation\Sources\AbstractFileSource
438943
public function reload()
   {

      if ( isset( $this->_options[ 'folder' ] ) )
      {
         return $this->reloadFromFolder();
      }

      if ( ! isset( $this->_options[ 'file' ] ) || ! \file_exists( $this->_options[ 'file' ] ) )
      {
         $this->logNotice( 'Reload data fails because there is no folder/file defined', __CLASS__ );
         return $this;
      }

      return $this->reloadFromFile();

   }
501733
protected function reloadEnvironment()
    {
        // Reload the environment variables from the file.
        (new Dotenv(app()->environmentPath(), app()->environmentFile()))->overload();

        // Reload the config repository.
        $loader = new LoadConfiguration;
        $this->callSilent('config:clear');
        $loader->bootstrap(app());
    }
373401
public function reload()
    {
        $fresh = \Pheasant::instance()->finderFor($this)
            ->find($this->className(), $this->identity()->toCriteria())
            ->one()
            ;

        $this->_data = $fresh->_data;

        return $this;
    }
94470
public function refresh() {

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

		return $this;
	}
297304
public static function reload()
    {
        global $PPHP;
        $db = $PPHP['db'];
        $_SESSION['ACL_INFO'] = null;
        if (!array_key_exists('id', $_SESSION['user'])) {
            return;
        };
        $userId = $_SESSION['user']['id'];

        $flat = $db->selectArray(
            "
            SELECT action, objectType, objectId
            FROM acl_users
            WHERE userId=?
            ",
            array($userId)
        );
        self::_load($flat);

        $flat = $db->selectArray(
            "
            SELECT action, objectType, objectId
            FROM users_roles
            INNER JOIN acl_roles ON acl_roles.role=users_roles.role
            WHERE users_roles.userId=?
            ",
            array($userId)
        );
        self::_load($flat);

        $_SESSION['ACL_ROLES'] = self::getRoles($userId);
    }
1360494
private function loadResourceFiles()
    {
        return $this->replaceExecutableCode(
            $this->loadResourcesFiles()
        )->mapWithKeys(function ($value, $key) {
            return [$this->removeExtension($key) => $value];
        });
    }
1314616
public function overload(): self
    {
        $this->loader = new Loader($this->files);
        $this->loader->load();

        return $this;
    }
1126102
public function getDefaultSource()
    {
        if (($name = $this->config()->default_source) && $source = Controller::curr()->{$name}) {
            return $source;
        }
    }
135479
public function load($source)
    {
        if ($this->isFile($source)) {
            return $this->loadFile($source);
        } else {
            return $this->loadString($source);
        }
    }
140672
public function reset()
    {
        $this->header = null;
        $this->line   = 0;
        $this->file->rewind();

        return $this;
    }
1171681
public function getSource()
    {
        return Yii::$app->storage->fileAbsoluteHttpPath($this->filter_id . '_' . $this->file->name_new_compound);
    }
235758
public function refreshAccessToken()
	{
		$newToken = $this->http->requestAccessToken();
		if (!is_null($newToken))
		{
			$this->config->setAccessToken($newToken);
			$this->http = new Request($this->guzzle, $this->config, $this->climate);
			if ($this->config->shouldStoreToken())
			{
				file_put_contents(Helper::getStoragePath($this->config->getStorageTokenFilename()), $newToken);
			}
		}

		return $newToken;
	}
78662
public function reload()
    {
        $map = json_decode($this->seed, TRUE);
        \UArray::doConvertToArray($map);
        $result = [];
        foreach ($map as $key => $item) {
            $validation = $this->formatItem($item, $key);
            if ($validation) {
                $result[$key] = $item;
            }
        }
        $this->map = $result;
    }
419569
public function reload()
    {
        $class = $this->getRemoteClass();
        $this->remoteModels = (new $class)->entity->fetchByRelatedThroughTable($this->table, $this->remoteAttributeName, $this->relatedAttributeName, $this->model, $this->filterList);
    }
115701
public function reloadConfig(): Promise
    {
        if ($this->pendingConfig) {
            return $this->pendingConfig;
        }

        $promise = call(function () {
            $this->config = yield $this->configLoader->loadConfig();
        });

        $this->pendingConfig = $promise;

        $promise->onResolve(function () {
            $this->pendingConfig = null;
        });

        return $promise;
    }
1321755
public function getSource()
    {
        if ($this->source === null) {
            $this->source = new Source($this);
        }
        return $this->source;
    }
830339
protected function initSourceImageResource() 
    { 
    	$ext = $this->getExtension();
    	
    	switch($ext) {
		case 'gif':
			$this->sourceImageResource = ImageCreateFromGif($this->sourceImagePath);
			break;
    	
		case 'jpg':
			$this->sourceImageResource = ImageCreateFromJpeg($this->sourceImagePath);
			break;
    	
		case 'png':
			$this->sourceImageResource = ImageCreateFromPng($this->sourceImagePath);
			break;
    	
		default:
			throw new \RuntimeException("An error occurred trying to create the image, extension '" . $ext. "' is not supported");
			break;
    	}
    	
    	return $this;
    }