Skip to content

Commit bc05562

Browse files
committed
docs: update outdated descriptions
1 parent 9c99605 commit bc05562

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

contributing/internals.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ projects outside of CodeIgniter. Basically, this means that any
1313
dependencies should be kept to a minimum. Any dependencies must be able
1414
to be passed into the constructor. If you do need to use one of the
1515
other 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
1717
override 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

0 commit comments

Comments
 (0)