Add test for create new report

This commit is contained in:
2014-12-23 16:47:37 +01:00
parent 9228b43802
commit 15c3916c8b
5 changed files with 273 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ class AppKernel extends Kernel
new Chill\MainBundle\ChillMainBundle(),
new Chill\PersonBundle\ChillPersonBundle(),
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
);
}

View File

@@ -26,5 +26,48 @@ doctrine:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite: ~
chill_main:
available_languages: [ fr, nl, en ]
available_languages: [ fr, nl, en ]
security:
providers:
users:
entity:
class: Chill\MainBundle\Entity\User
property: username
encoders:
Chill\MainBundle\Entity\User:
algorithm: bcrypt
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
default:
anonymous: ~
http_basic: ~
form_login:
csrf_parameter: _csrf_token
intention: authenticate
csrf_provider: form.csrf_provider
logout: ~
access_control:
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/, roles: ROLE_USER }

View File

@@ -1,7 +1,7 @@
parameters:
database_host: 127.0.0.1
database_port: 5434
database_name: symfony
database_user: symfony
database_password: symfony
database_port: 5435
database_name: chill
database_user: chill
database_password: chill
locale: fr

View File

@@ -0,0 +1,11 @@
chill_person:
resource: .
type: chill_routes_person
#load route for reports
chill_report:
resource: .
type: chill_routes_report
chill_main:
resource: "@ChillMainBundle/Resources/config/routing.yml"