Overview
  • Namespace
  • Class

Namespaces

  • yii2cdn

Classes

  • Cdn
  • Component
  • ConfigFile
  • ConfigLoader
  • ConfigParser
  • File
  • Section

Class ConfigFile

CDN Configuration File handler

Namespace: yii2cdn
Package: yii2cdn
Author: Junaid Atari mj.atari@gmail.com
Version: 0.1
Located at src/ConfigFile.php

Methods summary

public
# __construct( object|string $config )

Constructor function

Constructor function

Parameters

$config
CDN Config
protected
# load( string|object $config )

Load the CDN config

Load the CDN config

Parameters

$config
CDN Config
protected array
# getListOf( )

Get the configuration

Get the configuration

Returns

array
public string
# getPath( )

Get config file real path

Get config file real path

Returns

string
public array
# get( array $list = [] )

Get the list of cdn components configuration

Get the list of cdn components configuration

Parameters

$list
(optional) Components configuration

Returns

array

See

yii2cdn\ConfigFile::getBuiltComponents()
protected
# getBuiltComponents( array $list = [] )

Get pre built list of components

Get pre built list of components

Parameters

$list
(optional) Components configuration

Throws

yii\base\InvalidConfigException

Properties summary

protected string $path

Absolute config file path

Absolute config file path

#
protected array $config

Component Configuration

Component Configuration

# []
protected boolean $offline

File is offline or not

File is offline or not

# false
API documentation generated by ApiGen