protected function extractClassFromFile($path)
    {
        $fileContent = file_get_contents($path);
        $matches = [];
        $pattern = '/Cms\S+_\S+Class/';
        preg_match($pattern, $fileContent, $matches);

        if (!empty($matches[0])) {
            return $matches[0];
        }

        return null;
    }
protected function extractClassFromFile($path)
    {
        $fileContent = file_get_contents($path);
        $matches = [];
        $pattern = '/Cms\S+_\S+Class/';
        preg_match($pattern, $fileContent, $matches);

        if (!empty($matches[0])) {
            return $matches[0];
        }

        return null;
    }
protected function extractClassFromFile ( $ path ) { $ fileContent = file_get_contents ( $ path ) ; $ matches = [ ] ; $ pattern = '/Cms\S+_\S+Class/' ; preg_match ( $ pattern , $ fileContent , $ matches ) ; if ( ! empty ( $ matches [ 0 ] ) ) { return $ matches [ 0 ] ; } return null ; }
Extracts the class name from a cache file
@return string
Extracts the class name from a cache file