Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f6d0b4b2
Commit
f6d0b4b2
authored
Jul 04, 2013
by
resurtm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed MSSQL mutex.
parent
c3bdb0fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
MssqlMutex.php
extensions/mutex/yii/mutex/MssqlMutex.php
+0
-56
No files found.
extensions/mutex/yii/mutex/MssqlMutex.php
deleted
100644 → 0
View file @
c3bdb0fc
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii\mutex
;
use
Yii
;
use
yii\base\InvalidConfigException
;
/**
* @author resurtm <resurtm@gmail.com>
* @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.'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment