com\setasign\SetaFramework\Bootstrap

ConfigReader Class ConfigReader

File: /SetaFramework/src/Bootstrap/ConfigReader.php

Class hierarchy

Implements

  • \Psr\Log\LoggerAwareInterface

Summary

Properties

$applicationConfigRootPath

$bootstrap

$logger

protected ?\Psr\Log\LoggerInterface ConfigReader::$logger

Methods

__construct()

public ConfigReader::__construct (
Bootstrap $bootstrap,
string $configFile,
array $configParams
)

ConfigReader constructor.

Parameters
$bootstrap : Bootstrap
 
$configFile : string
 
$configParams : array
 
Exceptions

Throws ConfigReaderException

getAbsolutePath()

private ConfigReader::getAbsolutePath (
string $path
): string

Gets a absolute path of the path

Used for all path definitions in config file.

If the path is a relative path the application path dir scope will prepend before the path.

Parameters
$path : string
 

readApplicationConfiguration()

readBootstrapConfiguration()

readConfig()

public ConfigReader::readConfig (
void
): void

Readed properties:

bootstrap.defaultRouterValues bootstrap.errorController.file bootstrap.errorController.className bootstrap.requestPathPrefix

applications.<ApplicationName>.applicationPath applications.<ApplicationName>.applicationClassName applications.<ApplicationName>.config applications.<ApplicationName>.config.viewHelperNamespaces applications.<ApplicationName>.configParams

setLogger()

public ConfigReader::setLogger (
\Psr\Log\LoggerInterface $logger
): void

Sets a logger instance on the object.

Parameters
$logger : \Psr\Log\LoggerInterface