summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2017-10-25 16:33:38 (GMT)
committerJon Pugh2017-10-25 16:33:38 (GMT)
commit82c8d05ca985816ecae991bb5f577d89bbbf6eee (patch)
tree57dcebf0a34bfa99ba2b7401676c4f39d051b9e9
parent4f128797f6f53ed21c7ca00e8b8b19c2a6dda29c (diff)
Don't add extra "." in path when searching for classes.
-rw-r--r--src/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Application.php b/src/Application.php
index f91fdda..38292a5 100644
--- a/src/Application.php
+++ b/src/Application.php
@@ -159,7 +159,7 @@ class Application extends BaseApplication
function getAllContexts($name = '') {
$contexts = [];
$finder = new \Symfony\Component\Finder\Finder();
- $finder->files()->name('*.' . $name . '.yml')->in($this->config->get('config_path') . '/provision');
+ $finder->files()->name('*' . $name . '.yml')->in($this->config->get('config_path') . '/provision');
foreach ($finder as $file) {
list($context_type, $context_name) = explode('.', $file->getFilename());
$class = '\Aegir\Provision\Context\\' . ucfirst($context_type) . "Context";