lithium\net\http\Route::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'params' array
    • 'template' string
    • 'pattern' string
    • 'match' array
    • 'meta' array
    • 'defaults' array
    • 'keys' array
    • 'persist' array
    • 'handler' callable
    • 'continue' boolean
    • 'modifiers' array
    • 'formatters' array
    • 'unicode' boolean

Returns

void

Source

	public function __construct(array $config = []) {
		$defaults = [
			'params'   => [],
			'template' => '/',
			'pattern'  => '',
			'match'    => [],
			'meta'     => [],
			'defaults' => [],
			'keys'     => [],
			'persist'  => [],
			'handler'  => null,
			'continue' => false,
			'modifiers' => [],
			'formatters' => [],
			'unicode'  => true
		];
		parent::__construct($config + $defaults);
	}