public static function getBundleFileDetails(&$bundle, string &$file)
    {
        $filePath = $bundle->directory . $file;
        $fileModified = filemtime($bundle->directory . $file);
        
        if (!$bundle->lastModified || $fileModified > $bundle->lastModified) {
            $bundle->lastModified = $fileModified;
        }
        
        $preloaded = new \stdClass();
        $preloaded->modified = $fileModified;
        $preloaded->path = $filePath;
        $preloaded->name = basename($file);
        $preloaded->directory = dirname($filePath);
        
        return $preloaded;
    }
public static function getBundleFileDetails(&$bundle, string &$file)
    {
        $filePath = $bundle->directory . $file;
        $fileModified = filemtime($bundle->directory . $file);
        
        if (!$bundle->lastModified || $fileModified > $bundle->lastModified) {
            $bundle->lastModified = $fileModified;
        }
        
        $preloaded = new \stdClass();
        $preloaded->modified = $fileModified;
        $preloaded->path = $filePath;
        $preloaded->name = basename($file);
        $preloaded->directory = dirname($filePath);
        
        return $preloaded;
    }
public static function getBundleFileDetails ( & $ bundle , string & $ file ) { $ filePath = $ bundle -> directory . $ file ; $ fileModified = filemtime ( $ bundle -> directory . $ file ) ; if ( ! $ bundle -> lastModified || $ fileModified > $ bundle -> lastModified ) { $ bundle -> lastModified = $ fileModified ; } $ preloaded = new \ stdClass ( ) ; $ preloaded -> modified = $ fileModified ; $ preloaded -> path = $ filePath ; $ preloaded -> name = basename ( $ file ) ; $ preloaded -> directory = dirname ( $ filePath ) ; return $ preloaded ; }
Get additional details about a file from a bundle.

@param \stdClass $bundle
The bundle in which the file is included.

@param string $file
The file to get more details about.

@return \stdClass Object containing additional details about the file from the bundle.
Get additional details about a file from a bundle .