We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc05c01 commit d996ee1Copy full SHA for d996ee1
1 file changed
user_guide_src/source/concepts/factories.rst
@@ -15,6 +15,11 @@ What are Factories?
15
Like :doc:`./services`, **Factories** are an extension of autoloading that helps keep your code
16
concise yet optimal, without having to pass around object instances between classes.
17
18
+Factories are similar to CodeIgniter 3's ``$this->load`` in the following points:
19
+
20
+- Load a class
21
+- Share the loaded class instance
22
23
At its
24
simplest, Factories provide a common way to create a class instance and access it from
25
anywhere. This is a great way to reuse object states and reduce memory load from keeping
0 commit comments