array( // default role for unauthenticated users 'default_role' => 'guest', // identity provider service name 'identity_provider' => 'BjyAuthorize\Provider\Identity\ZfcUserZendDb', // Role providers to be used to load all available roles into Zend\Permissions\Acl\Acl // Keys are the provider service names, values are the options to be passed to the provider 'role_providers' => array( 'BjyAuthorize\Provider\Role\ZendDb' => array( 'table' => 'user_role', 'role_id_field' => 'role_id', 'parent_role_field' => 'parent', ), ), // Guard listeners to be attached to the application event manager 'guards' => array( 'BjyAuthorize\Guard\Controller' => array( //frontend array('controller' => 'zfcuser', 'roles' => array('guest')), array('controller' => 'ZfcAdmin\Controller\AdminController', 'roles' => array('guest')), array('controller' => 'Application\Controller\Index', 'roles' => array('guest')), array('controller' => 'Application\Controller\Reservation', 'roles' => array('guest')), array('controller' => 'Application\Controller\appServices', 'roles' => array('guest')), array('controller' => 'Etudiant\Controller\Index', 'roles' => array('guest')), array('controller' => 'Application\Controller\TestErnest', 'roles' => array('guest')), ), /*'BjyAuthorize\Guard\Route' => array( array('route' => 'zfcadmin', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/logout', 'roles' => array('user', 'admin')), array('route' => 'zfcadmin/login', 'roles' => array('guest', 'user', 'admin')), array('route' => 'zfcadmin/residence', 'roles' => array( 'admin','gestResidence')), array('route' => 'zfcadmin/etudiant', 'roles' => array( 'admin')), array('route' => 'zfcadmin/canal', 'roles' => array( 'admin','gestResidence')), array('route' => 'zfcadmin/code', 'roles' => array( 'admin','gestResidence')), array('route' => 'zfcadmin/resa', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/etudianthome', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/batiment', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/logements', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/stockCS', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/typelogement', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/configuration', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/logs', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/locataire', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/programme', 'roles' => array('admin','gestResidence')), // array('route' => 'zfcadmin/choix', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/tarif', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/mailing', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/droit', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/user', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/document', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/lieu', 'roles' => array('admin','gestResidence')), array('route' => 'zfcadmin/liste', 'roles' => array('admin','gestResidence')), array('route' => 'home', 'roles' => array('guest', 'user', 'admin')), array('route' => 'etudiant', 'roles' => array('guest','user', 'admin')), array('route' => 'mes-infos', 'roles' => array('guest','user', 'admin')), array('route' => 'mes-infos-pay', 'roles' => array('guest','user', 'admin')), array('route' => 'mes-res', 'roles' => array('guest','user', 'admin')), array('route' => 'mon-compte', 'roles' => array('guest','user', 'admin')), array('route' => 'accountPdf', 'roles' => array('guest','user', 'admin')), array('route' => 'edit', 'roles' => array('guest','user', 'admin')), array('route' => 'documents', 'roles' => array('guest','user', 'admin')), array('route' => 'conseils', 'roles' => array('guest','user', 'admin')), array('route' => 'lieux', 'roles' => array('guest','user', 'admin')), array('route' => 'interv', 'roles' => array('guest','user', 'admin')), array('route' => 'news', 'roles' => array('guest','user', 'admin')), array('route' => 'paiementko', 'roles' => array('guest','user', 'admin')), array('route' => 'paiementok', 'roles' => array('guest','user', 'admin')), array('route' => 'paiementcancel', 'roles' => array('guest','user', 'admin')), array('route' => 'zfcuser', 'roles' => array('guest', 'user', 'admin')), array('route' => 'zfcuser/register', 'roles' => array('guest', 'user', 'admin')), array('route' => 'zfcuser/login', 'roles' => array('guest', 'user', 'admin')), array('route' => 'zfcuser/logout', 'roles' => array('guest', 'user', 'admin')), array('route' => 'home/logout', 'roles' => array('user', 'admin')), array('route' => 'fr', 'roles' => array('guest')), array('route' => 'en', 'roles' => array('guest')), array('route' => 'reservation', 'roles' => array('guest', 'user', 'admin')), array('route' => 'reservation/infos', 'roles' => array('guest')), array('route' => 'reservation/logement', 'roles' => array('guest')), array('route' => 'reservation/recap', 'roles' => array('guest')), array('route' => 'reservation/paiement', 'roles' => array('guest')), array('route' => 'reservation/payer', 'roles' => array('guest')), array('route' => 'reservation/paiementok', 'roles' => array('guest')), array('route' => 'reservation/paiementko', 'roles' => array('guest')), array('route' => 'reservation/paiementcancel', 'roles' => array('guest')), array('route' => 'reservation/valider', 'roles' => array('guest')), array('route' => 'reservation/conditions', 'roles' => array('guest')), array('route' => 'ecrire_xml', 'roles' => array('guest')), array('route' => 'ecrire_xml2', 'roles' => array('guest')), array('route' => 'webServices', 'roles' => array('guest')), array('route' => 'webServices/webServices', 'roles' => array('guest')), array('route' => 'appServices', 'roles' => array( 'guest','user','admin')), array('route' => 'appServices/info', 'roles' => array( 'guest','user','admin')), array('route' => 'testErnest', 'roles' => array( 'guest','user','admin')), )*/ ), ), );