コード例 #1
0
ファイル: CallerLock.php プロジェクト: jiangyu7408/lock
 /**
  * Get all the lock instances for all the roles of the current caller
  *
  * @return \BeatSwitch\Lock\Roles\RoleLock[]
  */
 protected function getLockInstancesForCallerRoles()
 {
     return array_map(function ($role) {
         return $this->manager->role($role);
     }, $this->caller->getCallerRoles());
 }