Advertisement
Guest User

Untitled

a guest
Oct 17th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #
  2. # SECURITY WARNING: it is CRITICAL that this file & directory are NOT accessible directly via a web browser!
  3. #
  4. # If you don't protect this directory from direct web access, anybody will be able to see your passwords.
  5. # http://nette.org/security-warning
  6. #
  7. common:
  8. parameters:
  9.  
  10. php:
  11. date.timezone: Europe/Prague
  12. # zlib.output_compression: yes
  13.  
  14. nette:
  15. application:
  16. errorPresenter: Error
  17.  
  18. session:
  19. expiration: 14 days
  20.  
  21.  
  22. services:
  23. routerFactory: RouterFactory
  24. router: @routerFactory::createRouter
  25. usersRepository: UsersRepository
  26.  
  27. database:
  28. class: Nette\Database\Connection
  29. arguments: ['mysql:host=localhost;dbname=zuro_db', zuro, zuro]
  30.  
  31. authenticator: Acl\Security\Authenticator
  32.  
  33. authorizator:
  34. class: Nette\Security\Permission
  35. setup:
  36. - addRole('guest')
  37. - addRole('editor')
  38. - addRole('admin')
  39. - addResource('Admin:Default')
  40. - addResource('Admin:Page')
  41. - allow('editor', 'Admin:Default')
  42. - allow('admin')
  43.  
  44.  
  45. factories:
  46.  
  47.  
  48. production < common:
  49.  
  50. development < common:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement