private function addExportUsers(MutableBag $exportData)
    {
        $repo = $this->em->getRepository(Users::class);
        $users = $repo->findAll();
        $export = [];
        /** @var Entity $user */
        foreach ($users as $user) {
            $export[] = Bag::from($user->toArray())
                ->filter(function ($k) {
                    return \in_array($k, ['id', 'username', 'displayname', 'password', 'email', 'enabled', 'roles']);
                }
            );
        }
        $exportData->set('__users', $export);
    }
private function addExportUsers(MutableBag $exportData)
    {
        $repo = $this->em->getRepository(Users::class);
        $users = $repo->findAll();
        $export = [];
        /** @var Entity $user */
        foreach ($users as $user) {
            $export[] = Bag::from($user->toArray())
                ->filter(function ($k) {
                    return \in_array($k, ['id', 'username', 'displayname', 'password', 'email', 'enabled', 'roles']);
                }
            );
        }
        $exportData->set('__users', $export);
    }
private function addExportUsers ( MutableBag $ exportData ) { $ repo = $ this -> em -> getRepository ( Users :: class ) ; $ users = $ repo -> findAll ( ) ; $ export = [ ] ; /** @var Entity $user */ foreach ( $ users as $ user ) { $ export [ ] = Bag :: from ( $ user -> toArray ( ) ) -> filter ( function ( $ k ) { return \ in_array ( $ k , [ 'id' , 'username' , 'displayname' , 'password' , 'email' , 'enabled' , 'roles' ] ) ; } ) ; } $ exportData -> set ( '__users' , $ export ) ; }
Add the user table to the export.

@param MutableBag $exportData

@throws \Bolt\Exception\InvalidRepositoryException
Add the user table to the export .