Пример #1
0
    /**
     * Function to delete existing role
     *
     * @param string $roleName
     * @return void
     * @throws Exception
     */
    public function deleteRole($roleName) {
        try {
            $this->userStoreManager->deleteRole($roleName);
        } catch (Exception $ex) {
            var_dump( $ex); exit;

            throw new Exception("Unable to delete role", 0, $ex);
        }
    }