src/Resolver/FileResolverAbstract.php
protected function getFileAsset($filePath)
    {
        $file = new \SplFileInfo($filePath);

        if (!$file->isReadable() || $file->isDir()) {
            return null;
        }

        $filePath = $file->getRealPath();

        return new FileAsset($filePath);
    }
protected function getFileAsset($filePath)
    {
        $file = new \SplFileInfo($filePath);

        if (!$file->isReadable() || $file->isDir()) {
            return null;
        }

        $filePath = $file->getRealPath();

        return new FileAsset($filePath);
    }
protected function getFileAsset ( $ filePath ) { $ file = new \ SplFileInfo ( $ filePath ) ; if ( ! $ file -> isReadable ( ) || $ file -> isDir ( ) ) { return null ; } $ filePath = $ file -> getRealPath ( ) ; return new FileAsset ( $ filePath ) ; }
Get a File Asset

@param string $filePath

@return FileAsset|null
Get a File Asset