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
74c99dc9
Commit
74c99dc9
authored
Jul 29, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style + test groups
parent
9e62d558
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
DbManager.php
framework/rbac/DbManager.php
+0
-5
PhpManager.php
framework/rbac/PhpManager.php
+1
-1
MySQLManagerTest.php
tests/unit/framework/rbac/MySQLManagerTest.php
+2
-0
PgSQLManagerTest.php
tests/unit/framework/rbac/PgSQLManagerTest.php
+2
-0
SqliteManagerTest.php
tests/unit/framework/rbac/SqliteManagerTest.php
+2
-0
No files found.
framework/rbac/DbManager.php
View file @
74c99dc9
...
...
@@ -41,22 +41,18 @@ class DbManager extends BaseManager
* with a DB connection object.
*/
public
$db
=
'db'
;
/**
* @var string the name of the table storing authorization items. Defaults to "auth_item".
*/
public
$itemTable
=
'{{%auth_item}}'
;
/**
* @var string the name of the table storing authorization item hierarchy. Defaults to "auth_item_child".
*/
public
$itemChildTable
=
'{{%auth_item_child}}'
;
/**
* @var string the name of the table storing authorization item assignments. Defaults to "auth_assignment".
*/
public
$assignmentTable
=
'{{%auth_assignment}}'
;
/**
* @var string the name of the table storing rules. Defaults to "auth_rule".
*/
...
...
@@ -70,7 +66,6 @@ class DbManager extends BaseManager
public
function
init
()
{
parent
::
init
();
$this
->
db
=
Instance
::
ensure
(
$this
->
db
,
Connection
::
className
());
}
...
...
framework/rbac/PhpManager.php
View file @
74c99dc9
...
...
@@ -47,7 +47,6 @@ class PhpManager extends BaseManager
* @see saveToFile()
*/
public
$assignmentFile
=
'@app/rbac/assignments.php'
;
/**
* @var string the path of the PHP script that contains the authorization rules.
* This can be either a file path or a path alias to the file.
...
...
@@ -56,6 +55,7 @@ class PhpManager extends BaseManager
* @see saveToFile()
*/
public
$ruleFile
=
'@app/rbac/rules.php'
;
/**
* @var Item[]
*/
...
...
tests/unit/framework/rbac/MySQLManagerTest.php
View file @
74c99dc9
...
...
@@ -3,6 +3,8 @@ namespace yiiunit\framework\rbac;
/**
* MySQLManagerTest
* @group db
* @group rbac
*/
class
MySQLManagerTest
extends
DbManagerTestCase
{
...
...
tests/unit/framework/rbac/PgSQLManagerTest.php
View file @
74c99dc9
...
...
@@ -3,6 +3,8 @@ namespace yiiunit\framework\rbac;
/**
* PgSQLManagerTest
* @group db
* @group rbac
*/
class
PgSQLManagerTest
extends
DbManagerTestCase
{
...
...
tests/unit/framework/rbac/SqliteManagerTest.php
View file @
74c99dc9
...
...
@@ -3,6 +3,8 @@ namespace yiiunit\framework\rbac;
/**
* SqliteManagerTest
* @group db
* @group rbac
*/
class
SqliteManagerTest
extends
DbManagerTestCase
{
...
...
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