class Illuminate / Support / ConfigurationUrlParser

ConfigurationUrlParser

Properties

protected static

$driverAliases array

The drivers aliases map.

Default: array

Methods

public

parseConfiguration ( $config ) : array

Parse the database configuration, hydrating options using a database configuration URL if possible.

Parameters

  • $config array|string
protected

getPrimaryOptions ( $url ) : array

Get the primary database connection options.

Parameters

  • $url array
protected

getDriver ( $url ) : string|null

Get the database driver from the URL.

Parameters

  • $url array
protected

getDatabase ( $url ) : string|null

Get the database name from the URL.

Parameters

  • $url array
protected

getQueryOptions ( $url ) : array

Get all of the additional database options from the query string.

Parameters

  • $url array
protected

parseUrl ( $url ) : array

Parse the string URL to an array of components.

Parameters

  • $url string
protected

parseStringsToNativeTypes ( $value ) : mixed

Convert string casted values to their native types.

Parameters

  • $value mixed
public static

getDriverAliases ( ) : array

Get all of the current drivers' aliases.

public static

addDriverAlias ( $alias , $driver ) : void

Add the given driver alias to the driver aliases array.

Parameters

  • $alias string
  • $driver string