Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v0.8'
Browse files Browse the repository at this point in the history
# Conflicts:
#	composer.json
  • Loading branch information
enumag committed Dec 12, 2017
2 parents d2dfe59 + 2764209 commit 53fa2d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"codeception/codeception": "^2.3.2",
"nette/bootstrap": "^3.0.0",
"nette/di": "^3.0.0@dev",
"nette/http": "^3.0.0@dev"
"nette/http": "^3.0.0@dev",
"nette/utils": "^3.0.0@dev"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.8.0",
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class MyServiceTest extends Unit
}
}
```
`useConfigFiles` method takes array of file paths that are either absolute or relative to suite root.

NetteApplicationModule
----
Expand Down
2 changes: 1 addition & 1 deletion src/Module/NetteDIModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private function createContainer(): void

$configFiles = is_array($this->configFiles) ? $this->configFiles : $this->config['configFiles'];
foreach ($configFiles as $file) {
$configurator->addConfig($this->path.'/'.$file);
$configurator->addConfig(FileSystem::isAbsolute($file) ? $file : $this->path.'/'.$file);
}

$this->container = $configurator->createContainer();
Expand Down

0 comments on commit 53fa2d5

Please sign in to comment.