October\Rain\Config\Repository

Overview

Repository for configuration in October CMS

Extends
  • Illuminate\Config\Repository
Implements
  • Illuminate\Contracts\Config\Repository
  • ArrayAccess

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $items - All of the configuration items. (defined in Illuminate\Config\Repository)
  • $macros - The registered string macros. (defined in Illuminate\Config\Repository)

Public Methods

public get()

public get(array|string $key, mixed $default = null): mixed 

get the specified configuration value.

public getMany()

public getMany(array $keys): array 

getMany configuration values.

public has()

public has(string $key): bool 

has determines if the given configuration value exists.

public package()

public package(string $namespace, string $path): void 

package registers a package configuration

public set()

public set(array|string $key, mixed $value = null): void 

set a given configuration value.

Show inherited public methods

Inherited Public Methods

  • __call() - Dynamically handle calls to the class. (defined in Illuminate\Config\Repository)
  • __callStatic() - Dynamically handle calls to the class. (defined in Illuminate\Config\Repository)
  • __construct() - Create a new configuration repository. (defined in Illuminate\Config\Repository)
  • all() - Get all of the configuration items for the application. (defined in Illuminate\Config\Repository)
  • flushMacros() - Flush the existing macros. (defined in Illuminate\Config\Repository)
  • hasMacro() - Checks if macro is registered. (defined in Illuminate\Config\Repository)
  • macro() - Register a custom macro. (defined in Illuminate\Config\Repository)
  • mixin() - Mix another object into the class. (defined in Illuminate\Config\Repository)
  • offsetExists() - Determine if the given configuration option exists. (defined in Illuminate\Config\Repository)
  • offsetGet() - Get a configuration option. (defined in Illuminate\Config\Repository)
  • offsetSet() - Set a configuration option. (defined in Illuminate\Config\Repository)
  • offsetUnset() - Unset a configuration option. (defined in Illuminate\Config\Repository)
  • prepend() - Prepend a value onto an array configuration value. (defined in Illuminate\Config\Repository)
  • push() - Push a value onto an array configuration value. (defined in Illuminate\Config\Repository)

Protected Methods

protected toNsKey()

protected toNsKey($key): void

toNsKey converts a namespaced key to an array key