Skip to content

Commit 299f91a

Browse files
committed
Added core module details in file-structure.md for v6
Signed-off-by: nati <[email protected]>
1 parent e0da7e4 commit 299f91a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

docs/book/v6/introduction/file-structure.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ These are the modules included by default:
9999

100100
Each Module folder, in turn, should contain the following folders, unless they are empty:
101101

102-
* `src/Entity` - Used by database entities
103102
* `src/Handler` - Action classes
104103
* `src/InputFilter` - Validation rules for inputs
105-
* `src/Repository` - Entity repository folder
106104
* `src/Service` - Service classes
107105

108106
The above example is just some of the folders a project may include, but they should give you an idea about the recommended structure.
@@ -120,3 +118,24 @@ This folder contains the template files, used for example to help render e-mail
120118

121119
> `twig` is used as Templating Engine.
122120
> All template files have the extension `.html.twig`.
121+
122+
### Core module
123+
124+
The Core module is a common codebase set up to be used by the applications you added to your project.
125+
126+
These are the submodules included by default:
127+
128+
* `Admin` - Contains logic for the admin submodule features
129+
* `App` - Contains shared application-level services and infrastructure utilities
130+
* `Security` - Contains authentication, authorization, and related security mechanisms
131+
* `Setting` - Contains configuration and application settings management
132+
* `User` - Contains user entities, repositories, and services handling user data and logic
133+
134+
Each submodule folder should contain:
135+
136+
* `src/Entity` - Used by database entities
137+
* `src/Repository` - Entity repository folder
138+
* `ConfigProvider.php` - Configuration data for the module
139+
140+
The above example is just some of the folders a project may include, but they should give you an idea about the recommended structure.
141+
Other classes the `src` folder may include are `DBAL`, `Enum`, `Command`, `Factory` etc.

0 commit comments

Comments
 (0)