v1.0.0
English

BaseService.php

system/Config/BaseService.php
1 class 13 methods

class BaseService

Services Configuration file. Services are simply other classes/libraries that the system uses to do its job. This is used by CodeIgniter to allow the core of the framework to be swapped out easily without affecting the usage within the rest of your application. This is used in place of a Dependency Injection container primarily due to its simplicity, which allows a better long-term maintenance of the applications built on top of CodeIgniter. A bonus side-effect is that IDEs are able to determine what class you are calling whereas with DI Containers there usually isn't a way for them to do this. Warning: To allow overrides by service providers do not use static calls, instead call out to \Config\Services (imported as AppServices).
get (string $key) public
set (string $key, object $value) public
override (string $key, object $value) public
getSharedInstance (string $key, ...$params) protected
autoloader (bool $getShared = true) public
locator (bool $getShared = true) public
__callStatic (string $name, array $arguments) public
serviceExists (string $name) public
reset (bool $initAutoloader = true) public
resetSingle (string $name) public
injectMock (string $name, $mock) public
resetServicesCache () public
buildServicesCache () protected
phpDG v1.0.0 BaseService.php 662 files 498 classes 763 fn
Generated