コード例 #1
0
ファイル: RoleableTrait.php プロジェクト: digbang/security
 /**
  * {@inheritdoc}
  */
 public function inRole($role)
 {
     return $this->roles->exists(function ($key, Role $myRole) use($role) {
         return $myRole->is($role);
     });
 }