core/Filesystem/Filesystem.php
public function getRequire( string $path )
	{
		if( $this->isFile( $path ) )
		{
			return $this->callback(static function($file) {
				/** @noinspection PhpIncludeInspection */
				return require $file;
			}, $path);
		}
		throw new NotFoundFileException($path,"File does not exist at path '{$path}'" );
	}
public function getRequire( string $path )
	{
		if( $this->isFile( $path ) )
		{
			return $this->callback(static function($file) {
				/** @noinspection PhpIncludeInspection */
				return require $file;
			}, $path);
		}
		throw new NotFoundFileException($path,"File does not exist at path '{$path}'" );
	}
public function getRequire ( string $ path ) { if ( $ this -> isFile ( $ path ) ) { return $ this -> callback ( static function ( $ file ) { /** @noinspection PhpIncludeInspection */ return require $ file ; } , $ path ) ; } throw new NotFoundFileException ( $ path , "File does not exist at path '{$path}'" ) ; }
Get the returned value of a file

@param  string $path
@return mixed

@throws NotFoundFileException
Get the returned value of a file