src/Rocketeer/Services/Roles/RolesManager.php
public function assignTasksRoles(array $roles)
    {
        foreach ($roles as $roles => $tasks) {
            $tasks = (array) $tasks;
            $roles = (array) $roles;

            foreach ($tasks as $task) {
                $this->builder->buildTask($task)->addRoles($roles);
            }
        }
    }
public function assignTasksRoles(array $roles)
    {
        foreach ($roles as $roles => $tasks) {
            $tasks = (array) $tasks;
            $roles = (array) $roles;

            foreach ($tasks as $task) {
                $this->builder->buildTask($task)->addRoles($roles);
            }
        }
    }
public function assignTasksRoles ( array $ roles ) { foreach ( $ roles as $ roles => $ tasks ) { $ tasks = ( array ) $ tasks ; $ roles = ( array ) $ roles ; foreach ( $ tasks as $ task ) { $ this -> builder -> buildTask ( $ task ) -> addRoles ( $ roles ) ; } } }
Assign roles to multiple tasks.

@param array $roles
Assign roles to multiple tasks .