ci4
1<?php
2
3declare(strict_types=1);
4
5/**
6* This file is part of CodeIgniter 4 framework.
7*
8* (c) CodeIgniter Foundation <admin@codeigniter.com>
9*
10* For the full copyright and license information, please view
11* the LICENSE file that was distributed with this source code.
12*/
13
14namespace CodeIgniter\Config;
15
16/**
17* Factories Configuration file.
18*
19* Provides overriding directives for how
20* Factories should handle discovery and
21* instantiation of specific components.
22* Each property should correspond to the
23* lowercase, plural component name.
24*/
25class Factory extends BaseConfig
26{
27/**
28* Supplies a default set of options to merge for
29* all unspecified factory components.
30*
31* @var array
32*/
33public static $default = [
34'component' => null,
35'path' => null,
36'instanceOf' => null,
37'getShared' => true,
38'preferApp' => true,
39];
40
41/**
42* Specifies that Models should always favor child
43* classes to allow easy extension of module Models.
44*
45* @var array
46*/
47public $models = [
48'preferApp' => true,
49];
50}
51