Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from gimler/disable_sessions
Browse files Browse the repository at this point in the history
disable session
  • Loading branch information
lsmith77 committed Aug 27, 2014
2 parents 8d3e9d8 + c94b344 commit beba52d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
13 changes: 3 additions & 10 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ framework:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: %kernel.debug%
form: ~
csrf_protection: true
csrf_protection: false
validation: { enable_annotations: true }
templating:
engines: ['twig']
#assets_version: SomeVersionScheme
default_locale: "%locale%"
trusted_proxies: ~
session: ~
session: false
fragments: ~

# Twig Configuration
Expand Down Expand Up @@ -92,10 +92,7 @@ fos_rest:
json: true
body_listener: true

nelmio_api_doc: ~

fos_http_cache:
flash_message: true
cache_control:
rules:
# the controls section values are used in a call to Response::setCache();
Expand All @@ -106,8 +103,4 @@ fos_http_cache:
headers:
cache_control: { public: true, max_age: 15, s_maxage: 30 }
last_modified: "-1 hour"
vary: [Accept-Encoding, Accept-Language]

bazinga_hateoas: ~

bazinga_rest_extra: ~
vary: [Accept-Encoding, Accept-Language]
1 change: 1 addition & 0 deletions app/config/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ security:
main:
pattern: ^/
anonymous: ~
stateless: true
http_basic:
realm: "Demo REST API (username: restapi, password: secretpw)"
6 changes: 0 additions & 6 deletions src/Acme/DemoBundle/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
{% block title 'Demo Bundle' %}

{% block body %}
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="flash-message">
<em>Notice</em>: {{ flashMessage }}
</div>
{% endfor %}

{% block content_header %}
<ul id="menu">
{% block content_header_more %}
Expand Down

0 comments on commit beba52d

Please sign in to comment.