Hostnet\Component\Webpack\Asset\Tracker::resolvePath PHP Method

resolvePath() private method

Find the full path to a requested path, this can be bundle configurations like @BundleName/
private resolvePath ( string $path ) : string
$path string the path to resolv.
return string the full path to the requested resource or false if not found.
    private function resolvePath($path)
    {
        // Find and replace the @BundleName with the absolute path to the bundle.
        $matches = [];
        preg_match('/(^|\\/)@(\\w+)/', $path, $matches);
        if (isset($matches[0], $matches[2], $this->bundle_paths[$matches[2]])) {
            return realpath(str_replace($matches[0], $this->bundle_paths[$matches[2]], $path));
        }
        // The path doesn't contain a bundle name. In this case it must exist in %kernel.root_dir%/Resources/views
        $path = $this->root_dir . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . $path;
        if (file_exists($path)) {
            return $path;
        }
        return false;
    }