config() публичный статический Метод

Used to set configuration parameters for the Dispatcher.
public static config ( array $config = [] ) : array
$config array Optional configuration params.
Результат array If no parameters are passed, returns an associative array with the current configuration, otherwise returns null.
Пример #1
0
 public function testConfigWithClasses()
 {
     Dispatcher::config(array('classes' => array('request' => 'lithium\\tests\\mocks\\console\\MockDispatcherRequest')));
     $expected = 'run';
     $result = Dispatcher::run()->testAction;
     $this->assertEqual($expected, $result);
 }