Get the filename and key of the config name
@param $name
@return array
333
public function getInfo($name)
    {
        $keys = explode('.', $name);
        if (is_array($keys)) {
            $file = array_shift($keys);
            $key = implode('.', $keys);
        } else {
            $file = $name;
            $key = null;
        }

        return ['file' => $file, 'key' => $key];
    }
371082
public function getMappingName($name)
    {
        return isset($this->mapping[$name]) ? $this->mapping[$name] : $name;
    }
272970
public function getFilename(string $name): ?string
    {
        if (!empty($file = $this->get($name)) && !$file->getError()) {
            return StreamWrapper::getFilename($file->getStream());
        }

        return null;
    }
1216624
public function getConfigurationPath($name = null)
    {
        if (! $name) {
            $appConfigDir = base_path('config') . '/';

            if (file_exists($appConfigDir)) {
                return $appConfigDir;
            } elseif (file_exists($path = __DIR__ . '/../config/')) {
                return $path;
            }
        } else {
            $appConfigPath = base_path('config') . '/' . $name . '.php';

            if (file_exists($appConfigPath)) {
                return $appConfigPath;
            } elseif (file_exists($path = __DIR__ . '/../config/' . $name . '.php')) {
                return $path;
            }
        }

        return '';
    }
244878
protected function getGroup(string $name): array
    {
        if (!$this->container->has('config_'.$name)) {
            $this->loadGroup($name);
        }

        return $this->container->get('config_'.$name);
    }
848372
protected function getPath($name)
    {
        $name = $this->getFileName();

        $withName = boolval($this->option('name'));

        $path = $this->settings['path'];
        if ($this->settingsDirectoryNamespace() === true) {
            $path .= $this->getArgumentPath($withName);
        }

        $path .= $name;

        return $path;
    }
1117985
protected function getConfig(string $name): array
    {
        if (isset($this->app['config']['self-update']['repository_types'][$name])) {
            return $this->app['config']['self-update']['repository_types'][$name];
        }

        return [];
    }
1197124
public function getKey($name)
    {
        if (strlen($name) === 0) {
            throw new SecurityException('Required name argument was empty', 1334215378);
        }
        $keyPathAndFilename = $this->getKeyPathAndFilename($name);
        if (!file_exists($keyPathAndFilename)) {
            throw new SecurityException(sprintf('The key "%s" does not exist.', $keyPathAndFilename), 1305812921);
        }
        $key = Utility\Files::getFileContents($keyPathAndFilename);
        if ($key === false) {
            throw new SecurityException(sprintf('The key "%s" could not be read.', $keyPathAndFilename), 1334483163);
        }
        if (strlen($key) === 0) {
            throw new SecurityException(sprintf('The key "%s" is empty.', $keyPathAndFilename), 1334483165);
        }
        return $key;
    }
172081
public function file(string $name): string {
        if (!isset($this->file[$name])) {
            return "";
        }
        return $this->file[$name];
    }
729762
public function get_config($name)
	{
		return isset($this->config[$name]) ? $this->config[$name] : null;
	}
1213539
public static function getFilename($name): string
    {
        $originalName = str_replace('\\', '/', $name);
        $pos = strrpos($originalName, '/');
        $originalName = false === $pos ? $originalName : substr($originalName, $pos + 1);

        return $originalName;
    }
1195433
protected function name($name = null)
    {
        $filename = is_null($name) ? $this->filename() : $name;

        $hash = Hash::make($filename);

        $name = $hash;
        //
        $this->templateFile = $name;
        //
        return $name;
    }
211433
public static function engineName($name){
		$segments = explode('.',$name);
		$index = 0;
		
		foreach($segments as $i => $name){
			if(ctype_upper(substr($name,0,1)) and $i != 0){
				$index = $i+1;
				break;
			}
		}
		
		if($index == 0){
			user_error('No Index Key Name');
			exit;
		}
		
		return (object)[
			'file' => array_slice($segments,0,$index),
			'keys' => array_slice($segments,$index)
		];
		
	}
863179
public static function file( $name, & $exists = false )
	{
		if( !defined("APP_DIR") )
		{
			return [];
		}

		$file = APP_DIR . "config" . DIRECTORY_SEPARATOR . $name . '.php';
		if( file_exists( $file ) )
		{
			$data = Helper::includeImport($file);
			$exists = true;
		}

		if( ! isset( $data ) || ! is_array( $data ) )
		{
			$data = [];
		}

		return $data;
	}
980861
public function defaultConfig($name)
    {
        $config = $this->config();
        $default = array_key_exists('default', $config) ? $config['default'] : array();
        if (!array_key_exists($name, $default)) {
            return array();
        }
        return $default[$name];
    }
1217137
public function getFiles(string $name = null) : array
    {
        if ($name === null) {
            return $this->files;
        }

        $files = $this->resolvePath($this->files, $name);

        if ($files instanceof UploadedFile) {
            return [$files];
        }

        if (is_array($files)) {
            return array_filter($files, static function ($file) {
                return $file instanceof UploadedFile;
            });
        }

        return [];
    }
862204
public function getFeConfig($name)
    {
        // Load it from the file.
        $filevalue = $this->getFeConfigFromFile($name);

        // Do we have a value?
        if (empty($filevalue) === true) {
            // Fallback to factory settings.
            if (isset($this->feConfigFallback[$name]) === true) {
                return array(
                    ($this->feConfigFallback[$name][static::RENDER][static::RENDER_EDITABLE] === static::VALUE_TRUE),
                    $this->feConfigFallback[$name][static::RENDER][static::RENDER_TYPE]
                );
            }
            // Unknown parameter and nothing in the fallback!
            // This should never happen, btw.
            return array(false, static::RENDER_TYPE_NONE);
        }

        return array(
            ($filevalue[static::RENDER_EDITABLE] === static::VALUE_TRUE),
            $filevalue[static::RENDER_TYPE]
        );
    }