-
Notifications
You must be signed in to change notification settings - Fork 128
refactor to no longer use sessions in the example controller #25
Comments
we could even drop Doctrine entirely and instead write into a file |
Uh, sqlite is not guaranteed to be available in every installation. It has to be enabled at compile time and is in fact an optional module on Debian and Ubuntu. That said, it's incredibly common, just make sure to require it in composer.json so there are no surprises for users. |
👎 sqlite We can use cvs files in combination with sys_get_temp_dir what do you think? |
why not using Yaml? That is what I ask my students to do first, and it works fine (most of the time). |
fine for me too |
👍 for yaml better readable support for nested elements ;) |
start rewrite note storage from session to temp file see https://github.com/gimler/symfony-rest-edition/tree/remove_session i use |
I created #30 to make it easier to collaborate on finalizing this. |
opened #33 to disable sessions |
sqlite is available in all php installs, so it should be safe to use. its awkward to use session in the REST edition (https://github.com/gimler/symfony-rest-edition/blob/2.3/src/Acme/DemoBundle/Controller/NoteController.php#L55), since we should actually disable sessions entirely, since most REST apps should not use sessions.
The text was updated successfully, but these errors were encountered: