コード例 #1
0
 public function testMergeInlineArray()
 {
     $this->config->merge($this->fixtures() . 'test-with-env-specific.json');
     $this->config->merge($this->fixtures() . 'test-with-env-specific.php');
     $this->config->merge(array('name' => 'This is the data from the array'));
     $this->assertStringEndsWith('from the array', $this->config->get('name'));
 }
コード例 #2
0
 /**
  * @inheritdoc
  *
  * This implementation stores its configuration in the container object's configuration under the module's base
  * configuration key.
  */
 public function config($key, $default = null)
 {
     return $this->config->get($key, $default);
 }