<?php

return array(
    'bjyauthorize' => array(

        // set the 'guest' role as default (must be defined in a role provider)
        'default_role' => 'guest',

        // Custom EliminaCode identity provider
        'identity_provider' => 'Login\Provider\EliminaCodeProviderIdentity',

        /* role providers simply provide a list of roles that should be inserted
         * into the Zend\Acl instance. the module comes with two providers, one
         * to specify roles in a config file and one to load roles using a
         * Zend\Db adapter.
         */
        'role_providers' => array(

            // this will load roles from the user_role table in a database
            // format: user_role(role_id(varchar), parent(varchar))
            'BjyAuthorize\Provider\Role\ZendDb' => array(
                'table'             => 'ec_ruoli',
                'role_id_field'     => 'ruolo',
                'parent_role_field' => 'parent_id',
            ),

        ),

    ),
);