You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It requires PHP version 8.0 and supports PHP up to 8.3.
60
62
63
+
<!---->
61
64
62
65
Usage
63
66
-----
@@ -84,6 +87,7 @@ If you want RobotLoader to skip certain directories, use `$loader->excludeDirect
84
87
85
88
By default, RobotLoader reports errors in PHP files by throwing a `ParseError` exception. This can be suppressed using `$loader->reportParseErrors(false)`.
86
89
90
+
<!---->
87
91
88
92
PHP Files Analyzer
89
93
------------------
@@ -117,6 +121,7 @@ $loader->refresh();
117
121
$res = $loader->getIndexedClasses();
118
122
```
119
123
124
+
<!---->
120
125
121
126
Caching
122
127
-------
@@ -131,6 +136,7 @@ The initial file scanning, when the cache doesn't exist yet, can naturally take
131
136
This is a situation where a large number of concurrent requests on a production server would trigger RobotLoader, and since the cache doesn't exist yet, they would all start scanning files, which would overload the server.
132
137
Fortunately, RobotLoader works in such a way that only the first thread indexes the files, creates the cache, and the rest wait and then use the cache.
0 commit comments