Skip to content

Commit f5b53ad

Browse files
samdarkvjik
andauthored
Extend glossary (#463)
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
1 parent 4063fed commit f5b53ad

1 file changed

Lines changed: 163 additions & 10 deletions

File tree

src/guide/glossary.md

Lines changed: 163 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,140 @@
11
# A
22

3+
## action
4+
5+
Action is a callable, class, or class method that handles a matched route and returns a response.
6+
Read more in ["Actions"](structure/action.md).
7+
38
## alias
49

510
Alias is a string used by Yii to refer to the class or directory such as `@app/vendor`.
611
Read more in ["Aliases"](concept/aliases.md).
712

13+
## application
14+
15+
Application is an object that starts up, handles a request through configured middleware, and shuts down.
16+
Read more in ["Application"](structure/application.md).
17+
818
## asset
919

1020
Asset refers to a resource file. Typically, it contains JavaScript or CSS code but can be any static content accessed via HTTP.
1121
Read more in ["Assets"](views/asset.md).
1222

23+
## asset bundle
24+
25+
Asset bundle is a PHP class that declares a group of CSS, JavaScript, image, or font files that should be published
26+
and registered together.
27+
Read more in ["Asset Bundles"](views/asset.md#asset-bundles).
28+
29+
## authentication
30+
31+
Authentication is the process of determining the identity of the current user.
32+
Read more in ["Authentication"](security/authentication.md).
33+
34+
## authorization
35+
36+
Authorization is the process of checking whether an authenticated or anonymous user is allowed to perform an action.
37+
Read more in ["Authorization"](security/authorization.md).
38+
39+
## autoloading
40+
41+
Autoloading is the process of loading PHP classes automatically when they are first used.
42+
Read more in ["Class autoloading"](concept/autoloading.md).
43+
44+
# B
45+
46+
## bootstrap
47+
48+
Bootstrap is application startup code that prepares services, configuration, and runtime state before request handling.
49+
Read more in ["Configuration"](concept/configuration.md).
50+
1351
# C
1452

1553
## configuration
1654

17-
The Configuration may refer either to the process of setting properties of an object or to a configuration file that stores
18-
settings for an object, or a class of objects.
55+
Configuration may refer either to the process of setting properties of an object or to a configuration file that stores
56+
settings for an object, or a class of objects.
1957
Read more in ["Configuration"](concept/configuration.md).
2058

59+
## container
60+
61+
Container is an object that creates services, resolves their dependencies, and returns configured instances.
62+
Read more in ["DI container"](concept/di-container.md#di-container).
63+
64+
## controller
65+
66+
Controller is a class that groups action methods for related routes.
67+
Read more in ["Actions"](structure/action.md).
68+
69+
## cookie
70+
71+
Cookie is a small piece of data stored by a browser and sent with later requests to the same site.
72+
Read more in ["Cookies"](runtime/cookies.md).
73+
74+
## CSRF
75+
76+
CSRF means cross-site request forgery, an attack where another site tries to make a user's browser submit an unwanted
77+
request to your application.
78+
Read more in ["Avoiding CSRF"](security/best-practices.md#avoiding-csrf).
79+
2180
# D
2281

2382
## DI
2483

25-
Dependency Injection is a programming technique where an object injects a dependent object.
84+
Dependency injection is a programming technique where an object receives its dependencies from the outside.
2685
Read more in ["Dependency injection and container"](concept/di-container.md).
2786

87+
# E
88+
89+
## entry script
90+
91+
Entry script is the first PHP script executed for a web or console application.
92+
Read more in ["Entry scripts"](structure/entry-script.md).
93+
94+
## event
95+
96+
Event is an object that represents something that happened and can be passed to listeners.
97+
Read more in ["Events"](concept/events.md).
98+
99+
# H
100+
101+
## handler
102+
103+
Handler is callable code selected by routing or middleware to process a request and produce a response.
104+
Read more in ["Routing and URL generation"](runtime/routing.md).
105+
28106
# I
29107

30108
## installation
31109

32110
Installation is a process of preparing something to work either by following a readme file or by executing a specially
33111
prepared script. In the case of Yii, it's setting permissions and fulfilling software requirements.
34112

113+
# L
114+
115+
## layout
116+
117+
Layout is a view template that wraps page-specific content with shared page structure.
118+
Read more in ["Working with layouts"](views/view.md#working-with-layouts).
119+
35120
# M
36121

122+
## migration
123+
124+
Migration is a versioned PHP class that applies or reverts a database schema or data change.
125+
Read more in ["Migrations"](databases/db-migrations.md).
126+
37127
## middleware
38128

39129
Middleware is a processor in the request processing stack. Given a request, it may either produce a response or do some
40-
action and pass processing to the next middleware.
130+
action and pass processing to the next middleware.
41131
Read more in ["Middleware"](structure/middleware.md).
42132

133+
## model
134+
135+
Model is an object that represents application data and usually contains validation or business rules for that data.
136+
Read more in ["Working with forms"](start/forms.md).
137+
43138
## module
44139

45140
The module is a namespace that groups some code based on a use-case. It's typically used within the main application
@@ -57,26 +152,84 @@ multiple classes under a certain name.
57152
## package
58153

59154
A package usually refers to [Composer package](https://getcomposer.org/doc/). It's code ready for reuse and
60-
redistribution installable automatically via package manager.
155+
redistribution installable automatically via a package manager.
156+
157+
## parameter
158+
159+
Parameter is a configuration value that can be used by application or package config files.
160+
Read more in ["Parameters"](concept/configuration.md#parameters).
161+
162+
# Q
163+
164+
## queue
165+
166+
A queue is a data structure that processes items in first-in, first-out order.
167+
Yii has a [yiisoft/queue](https://github.com/yiisoft/queue) package.
61168

62169
# R
63170

171+
## request
172+
173+
Request is a PSR-7 object that represents an incoming HTTP message, including method, URI, headers, body, uploaded files,
174+
and attributes.
175+
Read more in ["Request"](runtime/request.md).
176+
177+
## response
178+
179+
Response is a PSR-7 object that represents an outgoing HTTP message, including status code, headers, and body.
180+
Read more in ["Response"](runtime/response.md).
181+
182+
## route
183+
184+
Route describes which request method and URL pattern should be handled by which action or middleware.
185+
Read more in ["Routing and URL generation"](runtime/routing.md).
186+
64187
## rule
65188

66189
The rule usually refers to a validation rule of the [yiisoft/validator](https://github.com/yiisoft/validator) package.
67190
It holds a set of parameters for checking if a data set is valid.
68191
"Rule handler" does the actual processing.
69192

70-
# Q
193+
# S
71194

72-
## queue
195+
## service
73196

74-
A queue is similar to a stack. Queue follows First-In-First-Out methodology.
75-
Yii has a [yiisoft/queue](https://github.com/yiisoft/queue) package.
197+
Service is a focused object that performs application work or provides infrastructure behavior and is usually stored in
198+
the DI container.
199+
Read more in ["Service components"](structure/service.md).
200+
201+
## service provider
202+
203+
Service provider is a class that registers related service definitions for the DI container.
204+
Read more in ["Service providers"](concept/configuration.md#service-providers).
205+
206+
## session
207+
208+
Session is server-side storage associated with a browser across multiple requests.
209+
Read more in ["Sessions"](runtime/sessions.md).
210+
211+
# T
212+
213+
## template
214+
215+
Template is a file used by a view or template engine to produce presentation output such as HTML.
216+
Read more in ["Views"](views/view.md).
76217

77218
# V
78219

79220
## vendor
80221

81-
A Vendor is an organization or individual developer providing code in the form of packages.
222+
A vendor is an organization or individual developer providing code in the form of packages.
82223
It also may refer to [Composer's `vendor` directory](https://getcomposer.org/doc/).
224+
225+
## view
226+
227+
View is responsible for presenting data to end users, usually by executing a template with provided data.
228+
Read more in ["Views"](views/view.md).
229+
230+
# W
231+
232+
## widget
233+
234+
Widget is a reusable view component that renders a piece of user interface.
235+
Read more in ["Widgets"](views/widget.md).

0 commit comments

Comments
 (0)