Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating submodules

  • Loading branch information...
commit ed33532110c5174c18e5daf3ae67ba0d9ae87d56 1 parent 0e03a06
@BlendedByChris authored
View
16 app/config/config.yml
@@ -1,3 +1,6 @@
+imports:
+ - { resource: security.yml }
+
framework:
secret: mkI0VPyplAjqyExvslQiUEuaXdhGQkwC
charset: UTF-8
@@ -31,13 +34,12 @@ assetic:
## Doctrine Configuration
doctrine:
dbal:
- default_connection: default
- connections:
- default:
- dbname: laboratory
- user: root
- password:
- logging: %kernel.debug%
+ driver: pdo_mysql
+ dbname: laboratory
+ host: 127.0.0.1
+ user: root
+ password:
+ logging: %kernel.debug%
orm:
auto_generate_proxy_classes: %kernel.debug%
default_entity_manager: default
View
39 app/config/security.yml
@@ -7,5 +7,40 @@ security:
firewalls:
main:
- form_login:
- provider: fos_userbundle
+ pattern: .*
+ form-login:
+ provider: fos_userbundle
+ login_path: /login
+ use_forward: false
+ check_path: /login_check
+ failure_path: null
+ logout: true
+ anonymous: true
+
+ access_control:
+ # The WDT has to be allowed to anonymous users to avoid requiring the login with the AJAX request
+ - { path: ^/_wdt/, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/_profiler/, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ # AsseticBundle paths used when using the controller for assets
+ - { path: ^/js/, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/css/, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ # URL of FOSUserBundle which need to be available to anonymous users
+ - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/login_check$, role: IS_AUTHENTICATED_ANONYMOUSLY } # for the case of a failed login
+ - { path: ^/user/new$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/check-confirmation-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/confirm/, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/confirmed$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/request-reset-password$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/send-resetting-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/check-resetting-email$, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ - { path: ^/user/reset-password/, role: IS_AUTHENTICATED_ANONYMOUSLY }
+ # Secured part of the site
+ # This config requires being logged for the whole site and having the admin role for the admin part.
+ # Change these rules to adapt them to your needs
+ - { path: ^/admin/, role: ROLE_ADMIN }
+ - { path: ^/.*, role: ROLE_USER }
+
+ role_hierarchy:
+ ROLE_ADMIN: ROLE_USER
+ ROLE_SUPERADMIN: ROLE_ADMIN
2  vendor/assetic
@@ -1 +1 @@
-Subproject commit db41b5258d846b02282018fec5ed3c06533e6620
+Subproject commit 5a0197d809bd46892a82de3ff31590c08d60937d
2  vendor/doctrine
@@ -1 +1 @@
-Subproject commit 0d0d61935fa75b5bf82af98676029b3bbf111755
+Subproject commit 9f01e9563fd88a5359da39922e853cb6df445d0f
2  vendor/doctrine-common
@@ -1 +1 @@
-Subproject commit a2e0db00179abcde0b717dfa9cac29263ffe7a37
+Subproject commit 9c3508f7e576f91690f79c8d3a0b9b3d5ad57a8a
2  vendor/doctrine-dbal
@@ -1 +1 @@
-Subproject commit ae833d153f77a44c3737e7760bebfc992b579cd5
+Subproject commit 36c2e76abc75c9d508df87eec02cfbb2f045d307
2  vendor/monolog
@@ -1 +1 @@
-Subproject commit 0ce2cb2fc88599ebfb93f2b7bec02010f61ed756
+Subproject commit 1defa7857f842a5a554b13b776e06e7784e3a99b
2  vendor/symfony
@@ -1 +1 @@
-Subproject commit 9cc7aacf76a5b60cded5cd92d738ca1abc240274
+Subproject commit c4ae5b1ba2dfd4d14915832322c309bafc767a08
Please sign in to comment.
Something went wrong with that request. Please try again.