Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 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. parameters:
  8. container:
  9. parent: Shake\DI\Container # virtual repository & service, autoloading
  10.  
  11.  
  12. php:
  13. date.timezone: Europe/Prague
  14. # zlib.output_compression: yes
  15.  
  16.  
  17. nette:
  18. application:
  19. errorPresenter: Error
  20.  
  21. database:
  22. default:
  23. dsn: 'mysql:host=localhost;dbname=test'
  24. user: root
  25. password:
  26. extra:
  27. dsn: 'mysql:host=localhost;dbname=test'
  28. user: root
  29. password:
  30.  
  31. session:
  32. expiration: 14 days
  33.  
  34.  
  35. services:
  36. nette.presenterFactory:
  37. class: Shake\Scaffolding\PresenterFactory() # virtual presenter feature
  38.  
  39. databaseDefault: # database ORM
  40. class: Shake\Database\Orm\Context(@nette.database.default.context, Shake\Database\Orm\ConventionalFactory('*Entity', '*Table', ...))
  41. databaseExtra:
  42. class: Shake\Database\Orm\Context(@nette.database.extra.context, Shake\Database\Orm\ConventionalFactory('*Entity', '*Table', ...))
  43.  
  44. authenticator: Authenticator
  45. router: RouterFactory()::createRouter
  46.  
  47. fooRepository: FooRepository(@databaseExtra)
  48. barRepository:
  49. class: Shake\Scaffolding\Repository(@databaseExtra)
  50. setup:
  51. - setTableName('bar')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement