Skip to content

Commit

Permalink
deps: Use leeqvip/database instead of techone/database
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Oct 23, 2022
1 parent 3c6d11a commit 05a3ce7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"description": "Database adapter for php-casbin. ",
"authors": [
{
"name": "TechLee",
"email": "techlee@qq.com"
"name": "leeqvip",
"email": "leeqvip@gmail.com"
}
],
"license": "Apache-2.0",
"require": {
"casbin/casbin": "^3.0",
"techone/database": "^0.2"
"leeqvip/database": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "~7.0|~8.0|~9.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Casbin\Model\Model;
use Casbin\Persist\Adapter as AdapterContract;
use TechOne\Database\Manager;
use Leeqvip\Database\Manager;
use Casbin\Persist\AdapterHelper;
use Casbin\Persist\FilteredAdapter as FilteredAdapterContract;
use Casbin\Persist\Adapters\Filter;
Expand Down Expand Up @@ -38,7 +38,7 @@ public function __construct(array $config)
$this->config = $config;
$this->filtered = false;
$this->connection = (new Manager($config))->getConnection();

if (isset($config['policy_table_name']) && !is_null($config['policy_table_name'])) {
$this->policyTableName = $config['policy_table_name'];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/AdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Casbin\Persist\Adapter;
use CasbinAdapter\Database\Adapter as DatabaseAdapter;
use PHPUnit\Framework\TestCase;
use TechOne\Database\Manager;
use Leeqvip\Database\Manager;
use Casbin\Persist\Adapters\Filter;
use Casbin\Exceptions\InvalidFilterTypeException;

Expand Down

0 comments on commit 05a3ce7

Please sign in to comment.