public function doFlush()
    {
        while ($unit = array_shift($this->unitOfWork)) {
            while ($operations = array_shift($unit)) {
                while ($callback = array_shift($operations)) {
                    call_user_func($callback, $this->fileManager);
                }
            }
        }
    }
public function doFlush()
    {
        while ($unit = array_shift($this->unitOfWork)) {
            while ($operations = array_shift($unit)) {
                while ($callback = array_shift($operations)) {
                    call_user_func($callback, $this->fileManager);
                }
            }
        }
    }
public function doFlush ( ) { while ( $ unit = array_shift ( $ this -> unitOfWork ) ) { while ( $ operations = array_shift ( $ unit ) ) { while ( $ callback = array_shift ( $ operations ) ) { call_user_func ( $ callback , $ this -> fileManager ) ; } } } }
Executes all scheduled callbacks in the unit of work.

@return void
Executes all scheduled callbacks in the unit of work .