From f6d0b4b2471e0f44cea59f8084d04c7bba9a4054 Mon Sep 17 00:00:00 2001 From: resurtm Date: Thu, 4 Jul 2013 21:01:06 +0600 Subject: [PATCH] Removed MSSQL mutex. --- extensions/mutex/yii/mutex/MssqlMutex.php | 56 ------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 extensions/mutex/yii/mutex/MssqlMutex.php diff --git a/extensions/mutex/yii/mutex/MssqlMutex.php b/extensions/mutex/yii/mutex/MssqlMutex.php deleted file mode 100644 index d267699..0000000 --- a/extensions/mutex/yii/mutex/MssqlMutex.php +++ /dev/null @@ -1,56 +0,0 @@ - - * @since 2.0 - */ -class MssqlMutex extends Mutex -{ - /** - * Initializes Microsoft SQL Server specific mutex component implementation. - * @throws InvalidConfigException if [[db]] is not Microsoft SQL Server connection. - */ - public function init() - { - parent::init(); - $driverName = $this->db->driverName; - if ($driverName !== 'sqlsrv' && $driverName !== 'dblib' && $driverName !== 'mssql') { - throw new InvalidConfigException('In order to use MssqlMutex connection must be configured to use MS SQL Server database.'); - } - } - - /** - * This method should be extended by concrete mutex implementations. Acquires lock by given name. - * @param string $name of the lock to be acquired. - * @param integer $timeout to wait for lock to become released. - * @return boolean acquiring result. - * @throws \BadMethodCallException not implemented yet. - * @see http://msdn.microsoft.com/en-us/library/ms189823.aspx - */ - protected function acquireLock($name, $timeout = 0) - { - throw new \BadMethodCallException('Not implemented yet.'); - } - - /** - * This method should be extended by concrete mutex implementations. Releases lock by given name. - * @param string $name of the lock to be released. - * @return boolean release result. - * @throws \BadMethodCallException not implemented yet. - * @see http://msdn.microsoft.com/en-us/library/ms178602.aspx - */ - protected function releaseLock($name) - { - throw new \BadMethodCallException('Not implemented yet.'); - } -}