src/Viserio/Component/Parser/FileLoader.php
public function exists(string $file): string
    {
        $key = \str_replace(\DIRECTORY_SEPARATOR, '', $file);

        if (isset($this->exists[$key])) {
            return $this->exists[$key];
        }

        $file = $this->getPath($file) . $file;

        if (\file_exists($file)) {
            return $this->exists[$key] = $file;
        }

        throw new FileNotFoundException(\sprintf('File [%s] not found.', $file));
    }
public function exists(string $file): string
    {
        $key = \str_replace(\DIRECTORY_SEPARATOR, '', $file);

        if (isset($this->exists[$key])) {
            return $this->exists[$key];
        }

        $file = $this->getPath($file) . $file;

        if (\file_exists($file)) {
            return $this->exists[$key] = $file;
        }

        throw new FileNotFoundException(\sprintf('File [%s] not found.', $file));
    }
{@inheritdoc}