for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Api\Backend\Controller;
use yii\rbac\Item;
use App\Http\Api\Backend\Model\Role;
class RoleController extends AuthItemController
{
public $modelClass = Role::class;
protected function getType()
return Item::TYPE_ROLE;
}
protected function getPermission($action)
return 'role' . ucfirst($action);