private function updateRolesActions(stdClass $config, stdClass $serviceData)
    {
        $rolesActions = [
            "project-admin" =>
                [$serviceData->aclPrefix . "_list",
                    $serviceData->aclPrefix . "_create",
                    $serviceData->aclPrefix . "_update",
                    $serviceData->aclPrefix . "_delete",
                ],
        ];

        if( empty($config->acl->rolesActions) )
            $config->acl->rolesActions = $rolesActions;
        else
            $config->acl->rolesActions->{"project-admin"} = array_unique(array_merge($config->acl->rolesActions->{"project-admin"}, $rolesActions['project-admin']));

        return $config;
    }
private function updateRolesActions(stdClass $config, stdClass $serviceData)
    {
        $rolesActions = [
            "project-admin" =>
                [$serviceData->aclPrefix . "_list",
                    $serviceData->aclPrefix . "_create",
                    $serviceData->aclPrefix . "_update",
                    $serviceData->aclPrefix . "_delete",
                ],
        ];

        if( empty($config->acl->rolesActions) )
            $config->acl->rolesActions = $rolesActions;
        else
            $config->acl->rolesActions->{"project-admin"} = array_unique(array_merge($config->acl->rolesActions->{"project-admin"}, $rolesActions['project-admin']));

        return $config;
    }
private function updateRolesActions ( stdClass $ config , stdClass $ serviceData ) { $ rolesActions = [ "project-admin" => [ $ serviceData -> aclPrefix . "_list" , $ serviceData -> aclPrefix . "_create" , $ serviceData -> aclPrefix . "_update" , $ serviceData -> aclPrefix . "_delete" , ] , ] ; if ( empty ( $ config -> acl -> rolesActions ) ) $ config -> acl -> rolesActions = $ rolesActions ; else $ config -> acl -> rolesActions -> { "project-admin" } = array_unique ( array_merge ( $ config -> acl -> rolesActions -> { "project-admin" } , $ rolesActions [ 'project-admin' ] ) ) ; return $ config ; }
Updating roles actions

@param $config
@param $serviceData
@return stdClass
Updating roles actions