src/Phlexible/Bundle/AccessControlBundle/SecurityProvider/UserSecurityProvider.php
public function getAll($query, $limit, $offset)
    {
        // TODO: user query
        $users = $this->userManager->findBy(array(), array('lastname' => 'ASC'), $limit, $offset);

        $data = array();
        foreach ($users as $user) {
            $data[] = array(
                'securityType' => get_class($user),
                'securityId' => $user->getId(),
                'securityName' => $user->getDisplayName(),
            );
        }

        return array(
            'total' => $this->userManager->countAll(),
            'data' => $data,
        );
    }
public function getAll($query, $limit, $offset)
    {
        // TODO: user query
        $users = $this->userManager->findBy(array(), array('lastname' => 'ASC'), $limit, $offset);

        $data = array();
        foreach ($users as $user) {
            $data[] = array(
                'securityType' => get_class($user),
                'securityId' => $user->getId(),
                'securityName' => $user->getDisplayName(),
            );
        }

        return array(
            'total' => $this->userManager->countAll(),
            'data' => $data,
        );
    }
public function getAll ( $ query , $ limit , $ offset ) { // TODO: user query $ users = $ this -> userManager -> findBy ( array ( ) , array ( 'lastname' => 'ASC' ) , $ limit , $ offset ) ; $ data = array ( ) ; foreach ( $ users as $ user ) { $ data [ ] = array ( 'securityType' => get_class ( $ user ) , 'securityId' => $ user -> getId ( ) , 'securityName' => $ user -> getDisplayName ( ) , ) ; } return array ( 'total' => $ this -> userManager -> countAll ( ) , 'data' => $ data , ) ; }
Return users.

@param string $query
@param int    $limit
@param int    $offset

@return array
Return users .