Skip to content

Commit

Permalink
updated config.neon
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 8, 2011
1 parent 5f3c29e commit 796543d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/bootstrap.php
Expand Up @@ -28,7 +28,7 @@
->register();

// Create Dependency Injection container from config.neon file
$container = $configurator->loadConfig(__DIR__ . '/config.neon');
$container = $configurator->loadConfig(__DIR__ . '/config/config.neon');

// Opens already started session
if ($container->session->exists()) {
Expand Down
17 changes: 13 additions & 4 deletions app/config.neon → app/config/config.neon
Expand Up @@ -5,6 +5,15 @@
# http://nette.org/security-warning
#
common:
parameters:
database:
driver: mysql
host: localhost
dbname: test
user:
password:


php: # PHP configuration
date.timezone: Europe/Prague
# session.save_path: "%tempDir%/sessions"
Expand All @@ -13,15 +22,15 @@ common:
services:
database:
class: Nette\Database\Connection
arguments: ['mysql:host=localhost;dbname=test', 'user', 'password']
arguments: ['%database.driver%:host=%database.host%;dbname=%database.dbname%', %database.user%, %database.password%, ..., Nette\Database\Reflection\DiscoveredReflection()]
setup:
- setCacheStorage()

model:
class: Model
arguments: [@database]

authenticator:
factory: [@model, createAuthenticatorService]

factory: @model::createAuthenticatorService

production < common:

Expand Down
2 changes: 0 additions & 2 deletions temp/cache/.gitignore

This file was deleted.

0 comments on commit 796543d

Please sign in to comment.