mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add dependencies
This commit is contained in:
parent
cf9efab1cb
commit
94b9e09d49
@ -19,8 +19,8 @@ install:
|
|||||||
before_script:
|
before_script:
|
||||||
- php Tests/Fixtures/App/console --env=test cache:warmup
|
- php Tests/Fixtures/App/console --env=test cache:warmup
|
||||||
- psql -c 'create database test0;' -U postgres
|
- psql -c 'create database test0;' -U postgres
|
||||||
- php Tests/Fixtures/App/console doctrine:schema:create --env=test
|
- php Tests/Fixtures/App/console doctrine:schema:create --env=test --no-interaction
|
||||||
- php Tests/Fixtures/App/console doctrine:fixtures:load --env=test
|
- php Tests/Fixtures/App/console doctrine:fixtures:load --env=test --no-interaction
|
||||||
|
|
||||||
script: phpunit --coverage-text
|
script: phpunit --coverage-text
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ class AppKernel extends Kernel
|
|||||||
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
||||||
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
||||||
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
|
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
|
||||||
|
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,3 +5,37 @@ framework:
|
|||||||
test: ~
|
test: ~
|
||||||
session:
|
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 }
|
@ -29,6 +29,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/dom-crawler": "2.5",
|
"symfony/dom-crawler": "2.5",
|
||||||
"doctrine/doctrine-fixtures-bundle": "~2.2"
|
"doctrine/doctrine-fixtures-bundle": "~2.2",
|
||||||
|
"symfony/security": "~2.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user