public static function startFromFileCache(string $cacheFile)
    {
        self::start(
                function() use($cacheFile)
                {
                    if (file_exists($cacheFile)) {
                        return unserialize(file_get_contents($cacheFile));
                    }

                    return [];
                },
                function(array $annotationData) use($cacheFile)
                {
                    file_put_contents($cacheFile, serialize($annotationData));
                }
        );
    }
public static function startFromFileCache(string $cacheFile)
    {
        self::start(
                function() use($cacheFile)
                {
                    if (file_exists($cacheFile)) {
                        return unserialize(file_get_contents($cacheFile));
                    }

                    return [];
                },
                function(array $annotationData) use($cacheFile)
                {
                    file_put_contents($cacheFile, serialize($annotationData));
                }
        );
    }
public static function startFromFileCache ( string $ cacheFile ) { self :: start ( function ( ) use ( $ cacheFile ) { if ( file_exists ( $ cacheFile ) ) { return unserialize ( file_get_contents ( $ cacheFile ) ) ; } return [ ] ; } , function ( array $ annotationData ) use ( $ cacheFile ) { file_put_contents ( $ cacheFile , serialize ( $ annotationData ) ) ; } ) ; }
starts annotation cache with given cache file

@param  string  $cacheFile  path to file wherein cached annotation data is stored
@since  3.0.0
starts annotation cache with given cache file