Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug in AuthItem model, php 8 trim(): Passing null to parameter #480

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AnimateAsset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin;
namespace reza2ebt\admin;

use yii\web\AssetBundle;

Expand Down
2 changes: 1 addition & 1 deletion AutocompleteAsset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin;
namespace reza2ebt\admin;

use yii\web\AssetBundle;

Expand Down
2 changes: 1 addition & 1 deletion BaseObject.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin;
namespace reza2ebt\admin;

if(!class_exists('yii\base\BaseObject')){
class_alias('yii\base\Object', 'yii\base\BaseObject');
Expand Down
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin;
namespace reza2ebt\admin;

use Yii;
use yii\helpers\Inflector;
Expand Down
59 changes: 2 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,9 @@ RBAC Manager for Yii 2
======================
GUI manager for RBAC (Role Base Access Control) Yii2. Easy to manage authorization of user :smile:.

[![Latest Unstable Version](https://poser.pugx.org/mdmsoft/yii2-admin/v/unstable)](https://packagist.org/packages/mdmsoft/yii2-admin)
[![Total Downloads](https://poser.pugx.org/mdmsoft/yii2-admin/downloads.png)](https://packagist.org/packages/mdmsoft/yii2-admin)
[![Daily Downloads](https://poser.pugx.org/mdmsoft/yii2-admin/d/daily)](https://packagist.org/packages/mdmsoft/yii2-admin)
[![License](https://poser.pugx.org/mdmsoft/yii2-admin/license)](https://packagist.org/packages/mdmsoft/yii2-admin)
[![Reference Status](https://www.versioneye.com/php/mdmsoft:yii2-admin/reference_badge.svg)](https://www.versioneye.com/php/mdmsoft:yii2-admin/references)
[![Build Status](https://img.shields.io/travis/mdmsoft/yii2-admin.svg)](http://travis-ci.org/mdmsoft/yii2-admin)
[![Dependency Status](https://www.versioneye.com/php/mdmsoft:yii2-admin/dev-master/badge.png)](https://www.versioneye.com/php/mdmsoft:yii2-admin/dev-master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mdmsoft/yii2-admin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mdmsoft/yii2-admin/?branch=master)
[![Code Climate](https://img.shields.io/codeclimate/github/mdmsoft/yii2-admin.svg)](https://codeclimate.com/github/mdmsoft/yii2-admin)

Documentation
-------------
> **Important: If you install version 3.x, please see [this readme](https://github.com/mdmsoft/yii2-admin/blob/3.master/README.md#upgrade-from-2x).**


- [Change Log](CHANGELOG.md).
- [Authorization Guide](http://www.yiiframework.com/doc-2.0/guide-security-authorization.html). Important, read this first before you continue.
- [Basic Configuration](docs/guide/configuration.md)
- [Basic Usage](docs/guide/basic-usage.md).
- [User Management](docs/guide/user-management.md).
- [Using Menu](docs/guide/using-menu.md).
- [Api](https://mdmsoft.github.io/yii2-admin/index.html).
> **Important: This project fork from [mdmsoft/yii2-admin](https://github.com/mdmsoft/yii2-admin) please check document from here.**

Installation
------------
Expand All @@ -35,41 +16,5 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
php composer.phar require mdmsoft/yii2-admin "~1.0"
or
php composer.phar require mdmsoft/yii2-admin "~2.0"
```

or for the dev-master

```
php composer.phar require mdmsoft/yii2-admin "2.x-dev"
```

Or, you may add

```
"mdmsoft/yii2-admin": "~2.0"
php composer.phar require reza2ebt/yii2-admin "~1.0"
```

to the require section of your `composer.json` file and execute `php composer.phar update`.

### Install From the Archive

Download the latest release from here [releases](https://github.com/mdmsoft/yii2-admin/releases), then extract it to your project.
In your application config, add the path alias for this extension.

```php
return [
...
'aliases' => [
'@mdm/admin' => 'path/to/your/extracted',
// for example: '@mdm/admin' => '@app/extensions/mdm/yii2-admin-2.0.0',
...
]
];
```

[**More...**](docs/guide/configuration.md)

[screenshots](https://goo.gl/r8RizT)
2 changes: 1 addition & 1 deletion components/AccessControl.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use yii\web\ForbiddenHttpException;
use yii\base\Module;
Expand Down
2 changes: 1 addition & 1 deletion components/Configs.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use Yii;
use yii\caching\Cache;
Expand Down
2 changes: 1 addition & 1 deletion components/DbManager.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

/**
* DbManager represents an authorization manager that stores authorization information in database.
Expand Down
2 changes: 1 addition & 1 deletion components/GuestRule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use yii\rbac\Rule;

Expand Down
2 changes: 1 addition & 1 deletion components/Helper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use mdm\admin\models\Route;
use Yii;
Expand Down
2 changes: 1 addition & 1 deletion components/ItemController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use Yii;
use mdm\admin\models\AuthItem;
Expand Down
2 changes: 1 addition & 1 deletion components/MenuHelper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use Yii;
use yii\caching\TagDependency;
Expand Down
2 changes: 1 addition & 1 deletion components/RouteRule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

use Yii;
use yii\rbac\Rule;
Expand Down
2 changes: 1 addition & 1 deletion components/UserStatus.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\components;
namespace reza2ebt\admin\components;

/**
* Description of UserStatus
Expand Down
14 changes: 2 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mdmsoft/yii2-admin",
"name": "reza2ebt/yii2-admin",
"description": "RBAC Auth manager for Yii2 ",
"keywords": ["yii", "admin", "auth", "rbac"],
"type": "yii2-extension",
Expand All @@ -8,12 +8,6 @@
"issues": "https://github.com/mdmsoft/yii2-admin/issues",
"source": "https://github.com/mdmsoft/yii2-admin"
},
"authors": [
{
"name": "Misbahul Munir",
"email": "misbahuldmunir@gmail.com"
}
],
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "~2.0.7"
Expand All @@ -26,14 +20,10 @@
},
"autoload": {
"psr-4": {
"mdm\\admin\\": ""
"reza2ebt\\admin\\": ""
}
},
"extra": {
"branch-alias": {
"dev-1.0.master": "1.0.x-dev",
"dev-master": "2.x-dev"
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
Expand Down
2 changes: 1 addition & 1 deletion controllers/AssignmentController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use Yii;
use mdm\admin\models\Assignment;
Expand Down
2 changes: 1 addition & 1 deletion controllers/DefaultController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use Yii;

Expand Down
2 changes: 1 addition & 1 deletion controllers/MenuController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use Yii;
use mdm\admin\models\Menu;
Expand Down
2 changes: 1 addition & 1 deletion controllers/PermissionController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use mdm\admin\components\ItemController;
use yii\rbac\Item;
Expand Down
2 changes: 1 addition & 1 deletion controllers/RoleController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use mdm\admin\components\ItemController;
use yii\rbac\Item;
Expand Down
2 changes: 1 addition & 1 deletion controllers/RouteController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use Yii;
use mdm\admin\models\Route;
Expand Down
2 changes: 1 addition & 1 deletion controllers/RuleController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use Yii;
use mdm\admin\models\BizRule;
Expand Down
2 changes: 1 addition & 1 deletion controllers/UserController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\controllers;
namespace reza2ebt\admin\controllers;

use mdm\admin\components\UserStatus;
use mdm\admin\models\form\ChangePassword;
Expand Down
2 changes: 1 addition & 1 deletion models/Assignment.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models;
namespace reza2ebt\admin\models;

use mdm\admin\components\Configs;
use mdm\admin\components\Helper;
Expand Down
2 changes: 1 addition & 1 deletion models/AuthItem.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models;
namespace reza2ebt\admin\models;

use mdm\admin\components\Configs;
use mdm\admin\components\Helper;
Expand Down
2 changes: 1 addition & 1 deletion models/BizRule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models;
namespace reza2ebt\admin\models;

use Yii;
use yii\rbac\Rule;
Expand Down
2 changes: 1 addition & 1 deletion models/Menu.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models;
namespace reza2ebt\admin\models;

use Yii;
use mdm\admin\components\Configs;
Expand Down
2 changes: 1 addition & 1 deletion models/Route.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models;
namespace reza2ebt\admin\models;

use Exception;
use mdm\admin\components\Configs;
Expand Down
2 changes: 1 addition & 1 deletion models/User.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models;
namespace reza2ebt\admin\models;

use mdm\admin\components\Configs;
use mdm\admin\components\UserStatus;
Expand Down
2 changes: 1 addition & 1 deletion models/form/ChangePassword.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models\form;
namespace reza2ebt\admin\models\form;

use Yii;
use mdm\admin\models\User;
Expand Down
2 changes: 1 addition & 1 deletion models/form/Login.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models\form;
namespace reza2ebt\admin\models\form;

use Yii;
use yii\base\Model;
Expand Down
2 changes: 1 addition & 1 deletion models/form/PasswordResetRequest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace mdm\admin\models\form;
namespace reza2ebt\admin\models\form;

use mdm\admin\components\UserStatus;
use mdm\admin\models\User;
Expand Down
2 changes: 1 addition & 1 deletion models/form/ResetPassword.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models\form;
namespace reza2ebt\admin\models\form;

use mdm\admin\components\UserStatus;
use mdm\admin\models\User;
Expand Down
2 changes: 1 addition & 1 deletion models/form/Signup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace mdm\admin\models\form;
namespace reza2ebt\admin\models\form;

use mdm\admin\components\UserStatus;
use mdm\admin\models\User;
Expand Down
2 changes: 1 addition & 1 deletion models/searchs/Assignment.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace mdm\admin\models\searchs;
namespace reza2ebt\admin\models\searchs;

use Yii;
use yii\base\Model;
Expand Down
Loading