bandwidthThrottle\tokenBucket\storage\FileStorage::open PHP Метод

open() приватный Метод

Opens the file and initializes the mutex.
private open ( )
    private function open()
    {
        $this->fileHandle = fopen($this->path, "c+");
        if (!is_resource($this->fileHandle)) {
            throw new StorageException("Could not open '{$this->path}'.");
        }
        $this->mutex = new FlockMutex($this->fileHandle);
    }