File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ projects outside of CodeIgniter. Basically, this means that any
1313dependencies should be kept to a minimum. Any dependencies must be able
1414to be passed into the constructor. If you do need to use one of the
1515other core packages, you can create that in the constructor using the
16- ` Services ` class , as long as you provide a way for dependencies to
16+ ` service() ` function , as long as you provide a way for dependencies to
1717override that:
1818
1919``` php
2020 public function __construct(?Foo $foo = null)
2121 {
22- $this->foo = $foo ?? \Config\Services::foo( );
22+ $this->foo = $foo ?? service('foo' );
2323 }
2424```
2525
@@ -112,10 +112,9 @@ should generally match the package name.
112112
113113## Autoloader
114114
115- All files within the package should be added to
116- ** system/Config/AutoloadConfig.php** , in the "classmap" property. This
117- is only used for core framework files, and helps to minimize file system
118- scans and keep performance high.
115+ All source files within the ** system/ThirdParty** should be added to
116+ ** system/Config/AutoloadConfig.php** , in the ` $coreClassmap ` property. This
117+ is only used for loading the third party packages without Composer.
119118
120119## Command-Line Support
121120
You can’t perform that action at this time.
0 commit comments