add dependencies

This commit is contained in:
Julien Fastré 2014-11-06 16:58:33 +01:00
parent cf9efab1cb
commit 94b9e09d49
4 changed files with 40 additions and 4 deletions

View File

@ -19,8 +19,8 @@ install:
before_script:
- php Tests/Fixtures/App/console --env=test cache:warmup
- psql -c 'create database test0;' -U postgres
- php Tests/Fixtures/App/console doctrine:schema:create --env=test
- php Tests/Fixtures/App/console doctrine:fixtures:load --env=test
- php Tests/Fixtures/App/console doctrine:schema:create --env=test --no-interaction
- php Tests/Fixtures/App/console doctrine:fixtures:load --env=test --no-interaction
script: phpunit --coverage-text

View File

@ -14,6 +14,7 @@ class AppKernel extends Kernel
new Symfony\Bundle\TwigBundle\TwigBundle(),
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle()
);
}

View File

@ -4,4 +4,38 @@ imports:
framework:
test: ~
session:
storage_id: session.storage.filesystem
storage_id: session.storage.filesystem
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: ~
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

@ -29,6 +29,7 @@
},
"require-dev": {
"symfony/dom-crawler": "2.5",
"doctrine/doctrine-fixtures-bundle": "~2.2"
"doctrine/doctrine-fixtures-bundle": "~2.2",
"symfony/security": "~2.5"
}
}