File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ to be adjusted if needed:
94
94
95
95
``src/ ``
96
96
Contains all PHP classes related to the bundle logic (e.g. ``Controller/RandomController.php ``).
97
-
97
+
98
98
``config/ ``
99
99
Houses configuration, including routing configuration (e.g. ``routing.yaml ``).
100
100
@@ -105,13 +105,14 @@ to be adjusted if needed:
105
105
Holds translations organized by domain and locale (e.g. ``AcmeTestBundle.en.xlf ``).
106
106
107
107
``public/ ``
108
- Contains web assets (images, stylesheets , etc) and is copied or symbolically
109
- linked into the project ``public/ `` directory via the `` assets:install `` console
110
- command.
108
+ Contains web assets (images, compiled CSS and JavaScript files , etc. ) and is
109
+ copied or symbolically linked into the project ``public/ `` directory via the
110
+ `` assets:install `` console command.
111
111
112
112
``assets/ ``
113
- Contains JavaScript, CSS, images and other assets related to the bundle that
114
- are not in ``public/ `` (e.g. stimulus controllers)
113
+ Contains the web asset sources (JavaScript and TypeScript files, CSS and Sass
114
+ files, etc.), images and other assets related to the bundle that are not in
115
+ ``public/ `` (e.g. Stimulus controllers)
115
116
116
117
``tests/ ``
117
118
Holds all tests for the bundle.
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ The following is the recommended directory structure of an AcmeBlogBundle:
63
63
.. code-block :: text
64
64
65
65
<your-bundle>/
66
+ ├── assets/
66
67
├── config/
67
68
├── docs/
68
69
│ └─ index.md
@@ -121,7 +122,8 @@ Doctrine ORM entities ``src/Entity/``
121
122
Doctrine ODM documents ``src/Document/ ``
122
123
Event Listeners ``src/EventListener/ ``
123
124
Configuration (routes, services, etc.) ``config/ ``
124
- Web Assets (CSS, JS, images) ``public/ ``
125
+ Web Assets (compiled CSS and JS, images) ``public/ ``
126
+ Web Asset sources (``.scss ``, ``.ts ``, Stimulus) ``assets/ ``
125
127
Translation files ``translations/ ``
126
128
Validation (when not using annotations) ``config/validation/ ``
127
129
Serialization (when not using annotations) ``config/serialization/ ``
Original file line number Diff line number Diff line change @@ -400,6 +400,15 @@ Check out the Symfony config reference to learn more about the other available
400
400
``session.auto_start = 1 `` This directive should be turned off in
401
401
``php.ini ``, in the web server directives or in ``.htaccess ``.
402
402
403
+ The session cookie is also available in :ref: `the Response object <component-http-foundation-response >`.
404
+ This is useful to get that cookie in the CLI context or when using PHP runners
405
+ like Roadrunner or Swoole.
406
+
407
+ .. versionadded :: 5.4
408
+
409
+ Accessing to the session cookie in the ``Response `` object was introduced
410
+ in Symfony 5.4.
411
+
403
412
Session Idle Time/Keep Alive
404
413
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
405
414
You can’t perform that action at this time.
0 commit comments