mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
docs: add What is Factories?
This commit is contained in:
parent
e9e0bc1692
commit
99e5e0a2fb
@ -9,8 +9,13 @@ Factories
|
||||
Introduction
|
||||
============
|
||||
|
||||
Like ``Services``, ``Factories`` are an extension of autoloading that helps keep your code
|
||||
concise yet optimal, without having to pass around object instances between classes. At its
|
||||
What is Factories?
|
||||
------------------
|
||||
|
||||
Like :doc:`./services`, **Factories** are an extension of autoloading that helps keep your code
|
||||
concise yet optimal, without having to pass around object instances between classes.
|
||||
|
||||
At its
|
||||
simplest, Factories provide a common way to create a class instance and access it from
|
||||
anywhere. This is a great way to reuse object states and reduce memory load from keeping
|
||||
multiple instances loaded across your app.
|
||||
|
Loading…
x
Reference in New Issue
Block a user