Services.php
system/Config/Services.php
1 class
40 methods
class Services
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.
cache
(?Cache $config = null, bool $getShared = true)
clirequest
(?App $config = null, bool $getShared = true)
codeigniter
(?App $config = null, bool $getShared = true)
commands
(bool $getShared = true)
csp
(?CSPConfig $config = null, bool $getShared = true)
curlrequest
(array $options = [], ?ResponseInterface $response = null, ?App $config = null, bool $getShared = true)
email
($config = null, bool $getShared = true)
encrypter
(?EncryptionConfig $config = null, $getShared = false)
exceptions
(?ExceptionsConfig $config = null, bool $getShared = true, )
filters
(?FiltersConfig $config = null, bool $getShared = true)
format
(?FormatConfig $config = null, bool $getShared = true)
honeypot
(?HoneypotConfig $config = null, bool $getShared = true)
image
(?string $handler = null, ?Images $config = null, bool $getShared = true)
iterator
(bool $getShared = true)
language
(?string $locale = null, bool $getShared = true)
logger
(bool $getShared = true)
migrations
(?Migrations $config = null, ?ConnectionInterface $db = null, bool $getShared = true)
negotiator
(?RequestInterface $request = null, bool $getShared = true)
responsecache
(?Cache $config = null, ?CacheInterface $cache = null, bool $getShared = true)
pager
(?PagerConfig $config = null, ?RendererInterface $view = null, bool $getShared = true)
parser
(?string $viewPath = null, ?ViewConfig $config = null, bool $getShared = true)
renderer
(?string $viewPath = null, ?ViewConfig $config = null, bool $getShared = true)
request
(?App $config = null, bool $getShared = true)
createRequest
(App $config, bool $isCli = false)
incomingrequest
(?App $config = null, bool $getShared = true)
response
(?App $config = null, bool $getShared = true)
redirectresponse
(?App $config = null, bool $getShared = true)
routes
(bool $getShared = true)
router
(?RouteCollectionInterface $routes = null, ?Request $request = null, bool $getShared = true)
security
(?SecurityConfig $config = null, bool $getShared = true)
session
(?SessionConfig $config = null, bool $getShared = true)
siteurifactory
(?App $config = null, ?Superglobals $superglobals = null, bool $getShared = true, )
superglobals
(?array $server = null, ?array $get = null, bool $getShared = true, )
throttler
(bool $getShared = true)
timer
(bool $getShared = true)
toolbar
(?ToolbarConfig $config = null, bool $getShared = true)
uri
(?string $uri = null, bool $getShared = true)
validation
(?ValidationConfig $config = null, bool $getShared = true)
viewcell
(bool $getShared = true)
typography
(bool $getShared = true)