Skip to content

Commit d996ee1

Browse files
committed
docs: add explanation
1 parent fc05c01 commit d996ee1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

user_guide_src/source/concepts/factories.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ What are Factories?
1515
Like :doc:`./services`, **Factories** are an extension of autoloading that helps keep your code
1616
concise yet optimal, without having to pass around object instances between classes.
1717

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+
1823
At its
1924
simplest, Factories provide a common way to create a class instance and access it from
2025
anywhere. This is a great way to reuse object states and reduce memory load from keeping

0 commit comments

Comments
 (0)